I communicate with localhost.Originally Posted by Salem
None of the machines on our network have Ethereal.So long as the machines are on the same local subnet, you can run ethereal on any of them, and see all local traffic no matter which machine originated it.
It turns out that the Content-Range header is a response header. To send a range request you need to send the Range header. Example:
This works on my machine running Apache 2.0.52. However, when I connect to the remote site, which runs Apache 1.3.33, range requests do not work; the entire file is returned. Doesn't Apache 1.3.33 support HTTP 1.1? Here is the request I send:Code:$out = "GET /bs.html HTTP/1.1\r\n"; $out .= "Accept: */*\r\n"; $out .= "Range: bytes=3000000-3000999\r\n"; $out .= "Host: localhost\r\n"; $out .= "Connection: Close\r\n\r\n";
This is the response header I get:Code:$out = "GET /blog/index.php?p=48 HTTP/1.1\r\n"; $out .= "Accept: */*\r\n"; $out .= "Range: bytes=3000000-3000999\r\n"; $out .= "Host: brokensaints.com\r\n"; $out .= "Connection: Close\r\n\r\n";
Code:HTTP/1.1 200 OK Date: Tue, 24 May 2005 18:35:46 GMT Server: Apache/1.3.33 (Debian GNU/Linux) mod_gzip/184.108.40.206a PHP/4.3.10-13 mod_ssl/2.8.22 OpenSSL/0.9.7d mod_perl/1.29 X-Powered-By: PHP/4.3.10-13 X-Pingback: http://brokensaints.com/blog/xmlrpc.php Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8