http://qs321.pair.com?node_id=16556

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..