Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I can't get why HTTP Analyzer (I prefer this one because it is capable of decoding SSL encoded data transfered through HTTPS) isn't able to capture PHP generated HTTP traffic. It capture HTTP traffic of every application except PHP (httpd.exe indeed). It even capture mysql-client's traffic tunneled through HTTP proxy but can't capture plain PHP's HTTP traffic. I tried various HTTP sniffers, but result is always the same. I mean exactly HTTP sniffers, not TCP ones.

Any idea? Is it possible that PHP issues HTTP request in some other way than others do ?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

It looks like some issue about not sniffing from the same source.

  1. Different client application? Maybe you are using a client that HTTP analyzer is not connected to/cannot sniff.

  2. Different interface? Maybe you are accessing some service via LAN address (192.168.*) and some other via localhost (127.0.0.1)

share|improve this answer
    
Seconds seems to be true. I checked whether HA got traffic of command line PHP interpreter and it got it ! So problem seems to be in Apache which runs as localhost. It's a pity I can't choose which interface to use in HA –  HongKilDong Jun 9 '11 at 9:34
    
Is your PHP curling to your local apache ? if so then make sure that apache listen to an external interface (LAN is OK) and then change your curl script to send request to this IP rather than 127.0.0.1 –  lenzai Jun 11 '11 at 13:01
    
No, I use local apache to test script curling to internet host, so it sends requests to internet IP. I changed settings of local apache so now it runs on LAN IP rather then 127.0.0.1. But HA still doesn't capture apache's traffic. So problem seems to be apache+HA , not local interface –  HongKilDong Jun 14 '11 at 5:04
    
Weird. Is there several lan interfaces ? please upload your ipconfig/ifconfig –  lenzai Jun 14 '11 at 12:20
    
Yes, there is one additional virtual LAN interface for virtual machine but apache is clearly binded to my real LAN interface and apache's environment var SERVER_ADDR returns my LAN IP –  HongKilDong Jun 15 '11 at 15:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.