OSDN Git Service

HTTP::Response->as_string returns all http messages which include all HTTP header... l7directord-negotiate-check-fix
authorKohei TANUMA <tanuma@users.sourceforge.jp>
Mon, 7 Jun 2010 17:03:28 +0000 (02:03 +0900)
committerKohei TANUMA <tanuma@users.sourceforge.jp>
Mon, 7 Jun 2010 17:03:28 +0000 (02:03 +0900)
commita79d28986be76db2e8b83a9c2a841142632231c3
tree3c4c63d294537d449dea6c4690c7a15ce2c2dc70
parented2ca6ba240ed06e07e603e8646c7b1d8d106792
HTTP::Response->as_string returns all http messages which include all HTTP header and HTTP content.
If HTTP method is 'HEAD', server will send only HTTP header and never send HTTP content.
If HTTP method is 'GET', server will send both HTTP header and HTTP content.
So, use HTTP::Response->as_string when HTTP method is 'HEAD', and use HTTP::Response->content when HTTP method is 'GET'.
l7directord/l7directord