Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Problems posting form info to a .asp site using LWP

by sublow (Initiate)
on Jul 03, 2001 at 20:47 UTC ( [id://93577]=perlquestion: print w/replies, xml ) Need Help??

sublow has asked for the wisdom of the Perl Monks concerning the following question:

I have attempted to automate posting info to a form on a remote website but keep getting a response (mostly in german) saying "your system can probably not handle *.asp files".

A similar program using LWP with the GET method works fine for a separate website but I seem to remember reading somewhere that LWP doesnt work with .asp sites. Is this true? If so, is there a way around the problem as I have hundreds of proteins to scan and cutting and pasting this info into my browser takes far too long!

Any ideas would be gratefully received.

Originally posted as a Categorized Question.

  • Comment on Problems posting form info to a .asp site using LWP

Replies are listed 'Best First'.
Re: Problems posting form info to a .asp site using LWP
by arhuman (Vicar) on Jul 03, 2001 at 21:07 UTC
    Check :
    • If you get a 30x HTTP Response from the server, for LWP doesn't handle POST as the IIS server expect when there's a redirection (look at Redirect_ok)...
    • Fake the UserAgent to an usual one 'Mozilla..'
    • Fake a referer (setting it to the page where the form is...)


    In last resort use SocketWorkbench to find what's different with a posting via your browser...
Re: Problems posting form info to a .asp site using LWP
by tomhukins (Curate) on Jul 04, 2001 at 03:24 UTC

    If you are having problems, it should not be due the technology deployed on the server side.

    LWP is a set of Web client libraries that make requests using HTTP and other protocols. ASP is a server-side technology that is used to send responses to HTTP requests. So, as long as LWP and ASP deal with HTTP well (which in my experience they do - I dislike ASP, but there are other reasons for that), the specific languages and technologies deployed should not cause a problem.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://93577]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2024-04-19 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found