Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

HTTP post from perl script on UNIX box to asp script on NT box

by Anonymous Monk
on Jun 06, 2000 at 08:09 UTC ( [id://16556]=perlquestion: print w/replies, xml ) Need Help??

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

How do I post variables from a perl script on a UNIX box to an asp script on an NT box. I currently have the perl script doing a redirect to the NT box with the variables assigned. When I run the script and check the Access database on the NT box, there aren't any new rows created. Any suggestions?

Originally posted as a Categorized Question.

  • Comment on HTTP post from perl script on UNIX box to asp script on NT box

Replies are listed 'Best First'.
Re: HTTP post from perl script on UNIX box to asp script on NT box
by Anonymous Monk on Oct 17, 2001 at 19:36 UTC
    this is a GET isn't it? If you're putting the data into the url itself it's a GET.
Re: HTTP post from perl script on UNIX box to asp script on NT box
by Anonymous Monk on Jun 06, 2000 at 17:20 UTC
    Hi,

    build a http-request with the following form:

    your-url?name1=value1&name2=value2 a.s.o.
    '?' starts your parameters, '&' divides them. All meta-signs of parameters should be represented by a %-sequence - to do this use URI::Escape:
    my $EscapedStr = URI::Escape::uri_escape('a string to be::escaped');

    I guess you had a problem with these metasigns: e.g. a blank may be interpreted as the end of your url...

    Anyway use the printf-equivalent and let the asp script print out the parameters to see if it works..

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found