CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
POSTs with LWP::UserAgent



Apr 7, 2000, 11:47 AM

Post #1 of 2 (1376 views)
POSTs with LWP::UserAgent Can't Post

Hi all Smile

Now I realise that the example in my last post contained a trifling typo which caused my problems, however that was only an example and my problem is still ongoing.

However, having corrected the example script I now feel I can ask more accurately the question I wished to ask in the first place (hence my beliefe it warrants a new post altogether).

I am reasonably new to web development and am now baffled with sending data to a script using the POST method. I find that if I use the LWP::UserAgent to POST data to a script then if I send no data at all I receive a successful response from the script explaining no data had been given (or whatever a particular script is programmed to respond when no data is POSTed).

However, my problem is, when I send any amount of data I actually receive either the 404 or 500 server errors, does anyone have any idea what can be going wrong?

I'm not so familiar with the POST method, does data for every field on the HTML form that executes the script have to be sent, or may the values of only one or two fileds be sent?

And why is a server error the outcome rather than a script error?

Any help shall be most greatly appreciated Smile


Apr 7, 2000, 2:18 PM

Post #2 of 2 (1376 views)
Re: POSTs with LWP::UserAgent [In reply to] Can't Post

Post sends all fields that are in the form. Weather they contain data or not. Does this script check to see if there are any blank fields? Can you post the script as you have it now?


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives