Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The problem arises, however, when I use LWP to post the values onto the server.
The script (which I have not seen, though it is an asp script), returns an HTTP 411 Content-Length expected error.
I know that the values are properly encoded, as they work when posted experimentally from a browser.
I suppose that what I'm really asking (having looked into setting values in the HTTP::Header section), is how to determine a Content-Length value, so that LWP does not report an error saying that "Content-Length set when there is not content, fixed at /usr/lib/perl5/vendor_perl/5.8.0/LWP/Protocol/http.pm line 194'.
Apart from the results returned from the server, there isn't much else that I can add.
Any help greatly appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Forcing Content-Length Value in LWP
by borisz (Canon) on Mar 25, 2004 at 17:54 UTC | |
|
Re: Forcing Content-Length Value in LWP
by iburrell (Chaplain) on Mar 25, 2004 at 20:28 UTC | |
by Anonymous Monk on Mar 25, 2004 at 22:57 UTC |