URL Request (Newbie)

Discussion in 'ASP General' started by Guest, Feb 18, 2004.

  1. Guest

    Guest Guest

    Using Perl, I can take the results of a form and post them else where

    #!/usr/bin/perl;
    use LWP::UserAgent;
    my $ua = new LWP::UserAgent;
    my $request = HTTP::Request->new(POST,'http://www.somesite.com');
    $request->content_type('application/x-www-form-urlencoded');
    $request->content('match=www&errors=0');
    my $response = $ua->request($request);
    ## end script

    How do I do such a thing using ASP ?
    Basically, I need to GET or POST to other pages offsite from inside an ASP
    script.


    Thanks In Advance
    Guest, Feb 18, 2004
    #1
    1. Advertising

  2. use the reqest object.
    IE. request.form ("<variable name>")
    or request.item ("<variable name>")

    rafael
    <me> wrote in message news:...
    > Using Perl, I can take the results of a form and post them else where
    >
    > #!/usr/bin/perl;
    > use LWP::UserAgent;
    > my $ua = new LWP::UserAgent;
    > my $request = HTTP::Request->new(POST,'http://www.somesite.com');
    > $request->content_type('application/x-www-form-urlencoded');
    > $request->content('match=www&errors=0');
    > my $response = $ua->request($request);
    > ## end script
    >
    > How do I do such a thing using ASP ?
    > Basically, I need to GET or POST to other pages offsite from inside an ASP
    > script.
    >
    >
    > Thanks In Advance
    >
    >
    >
    >
    >
    >
    Rafael Chemtob, Feb 18, 2004
    #2
    1. Advertising

  3. <me> wrote in message news:...
    > Using Perl, I can take the results of a form and post them else where
    >
    > #!/usr/bin/perl;
    > use LWP::UserAgent;
    > my $ua = new LWP::UserAgent;
    > my $request = HTTP::Request->new(POST,'http://www.somesite.com');
    > $request->content_type('application/x-www-form-urlencoded');
    > $request->content('match=www&errors=0');
    > my $response = $ua->request($request);
    > ## end script
    >
    > How do I do such a thing using ASP ?
    > Basically, I need to GET or POST to other pages offsite from inside an

    ASP
    > script.


    Response.Redirect:
    http://msdn.microsoft.com/library/en-us/iissdk/iis/ref_vbom_resomre.asp

    ServerXMLHTTP:
    http://msdn.microsoft.com/library/en-us/xmlsdk/htm/xml_obj_iserverxmlhttprequest_7zlc.asp
    Chris Hohmann, Feb 18, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian Birtle
    Replies:
    2
    Views:
    2,017
    John Saunders
    Oct 16, 2003
  2. Replies:
    1
    Views:
    6,272
    Ryan Stewart
    Dec 29, 2004
  3. =?Utf-8?B?QXhlbCBEYWhtZW4=?=

    Malformed URL by using Page.Request.Url.ToString() - why?

    =?Utf-8?B?QXhlbCBEYWhtZW4=?=, Apr 17, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    883
    Walter Wang [MSFT]
    Apr 18, 2007
  4. Íßêïò
    Replies:
    1
    Views:
    432
    Jason Friedman
    Jul 21, 2010
  5. mews.microsoft.com
    Replies:
    0
    Views:
    235
    mews.microsoft.com
    Mar 2, 2005
Loading...

Share This Page