Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
If I change the 3rd to a GET, it is partially successful. The first half of the fields are properly submitted, but the latter half is lost.
I realize that this is because GET requests can consist only of header info and are limited to 512 byes. This 3rd post is approaching 600 bytes, and the latter fields are not received/processed because the data for them falls beyond that limit.
If I submit the form as a POST I get a "200 Created" status line, but the web server does not process the transmission. This is not Apache/IIS/Netscape. It is a proprietary wwww server for a networking monitoring tool, WhatsUp from IpSwitch.
I think the problem with the POST is that Perl breaks the headers and the content for the POST into 2 different packets. The same submission from IE is a single packet. I realize this probably means that the web server is not completely HTTP compliant, but I'm stuck with it and have no other options.
I have tried using LWP "send_request" and "simple_request" because the docs says "these methods dispatch a single request" whereas "request" which says "this method may actually send several different requests" but they do not perform any differently. All three methods make the transmission as 2 packets, one for headers and another for content.
Looking for any suggestions on how to submit a POST from within Perl that only consists of a single packet.
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: LWP HTTP Request POST being sent in two packets
by RMGir (Prior) on Oct 10, 2002 at 16:23 UTC | |
Re: LWP HTTP Request POST being sent in two packets
by dws (Chancellor) on Oct 10, 2002 at 17:40 UTC | |
Re: LWP HTTP Request POST being sent in two packets
by Mr. Muskrat (Canon) on Oct 10, 2002 at 16:34 UTC | |
Re: LWP HTTP Request POST being sent in two packets
by Anonymous Monk on Oct 10, 2002 at 17:48 UTC |