in reply to Sending data to an ASP link

What did you actually try (show your code)? What does that asp page expect? What is actually sent over the wire ( http://wireshark.org, Live HTTP Headers)?
#!/usr/bin/perl -- use CGI(); my $data = 'http://bar/?%2fb=c;d=e'; my $uri = 'http://foo/asp.asp?'.CGI::escape($data); print CGI->redirect( -nph => 1, -uri => $uri, ); __END__ $ perl test.pl |cat -v HTTP/1.0 302 Found^M Server: cmdline^M Status: 302 Found^M Date: Sun, 01 Mar 2009 06:57:57 GMT^M Location: http://foo/asp.asp?http%3A%2F%2Fbar%2F%3F%252fb%3Dc%3Bd%3De^ +M ^M # perl test.pl | cat -v
There's no need to actually LIE, no such thing as LWP::Post

Replies are listed 'Best First'.
Re^2: Sending data to an ASP link
by natol44 (Sexton) on Mar 01, 2009 at 07:23 UTC
    I just try to post data to
    https://perfectmoney.com/api/step1.asp If no data is received the page redirects to the index page.

    And when I try your snippet (Thank you for it :), I get a "302 moved" reply, or a blank page if I run the script in a browser from the browser.

    If I embed the data in a html POST form, it works (Even if the data is wrong, I get some error messages from the asp script, that is normal).
Re^2: Sending data to an ASP link
by natol44 (Sexton) on Mar 01, 2009 at 07:30 UTC
    About LWP (Post) I mean in fact

    use LWP::Simple::Post qw(post post_xml);
    use LWP::UserAgent;
    use LWP::Simple;

    Rather an error writing than a LIE!
      Letters In Error :)
        LIE LOL :)

        But what about the original question asked? :)