bortzmeyer / echoping

Command-line testing tool for network protocols
http://bortzmeyer.github.io/echoping/
24 stars 8 forks source link

HTTP status 204 is treated as an error #1

Closed ntldano closed 12 years ago

ntldano commented 12 years ago

For servers behind various types of load balancers a 204 response may be returned and is an indication of a successful connect and transaction, but will have an empty body.

echoping currently returns an error if the server returns a 204 status.

/usr/local/bin/echoping -v -t 5 -h /nodebalancer -A -n 5 host.domain.com:80

This is /usr/local/bin/echoping, version 6.0.2.

Trying to connect to internet address 192.168.0.1 80 to transmit 131 bytes...
Connected...
TCP Latency: 0.039548 seconds
Sent (131 bytes)...
Application Latency: 0.039457 seconds
Error reading HTTP body (Illegal seek)

Please see RFC 2616, 10.2 for details on 204 response codes http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

A pull request will be submitted shortly with a proposed change for your review. Thank you for supporting this very useful utility.

bortzmeyer commented 12 years ago

Note that echoping is not developed here but on SOurceforge. The github repos was just an experiment.