talexb has asked for the wisdom of the Perl Monks concerning the following question:
I'm sending a GET to what I presume is a Windows Virtual Server, and it seems to want
as the request. If I build the request manually,GET /server/Api.asmx/FooReactivateAccount?UserId=blah HTTP/1.1 Host: staging-foo.bar.com
I get the resultuse HTTP::Request; $r = HTTP::Request->new('GET','http://staging-foo.bar.com/server/Api.a +smx/FooReactivateAccount?UserId=blah'); print $r->as_string
without the all important HTTP/1.1 at the end.GET http://staging-foo.bar.com/server/Api.asmx/FooReactivateAccount?Us +erId=blah
I've dug through the CPAN pages and the code and haven't found any good ideas. Can anyone suggest what I'm doing wrong?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to get HTTP/1.1 at end of request
by Corion (Patriarch) on Apr 13, 2009 at 18:58 UTC | |
by talexb (Chancellor) on Apr 13, 2009 at 19:27 UTC | |
by talexb (Chancellor) on Apr 14, 2009 at 16:14 UTC |