URL Request (Newbie)

G

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
 
R

Rafael Chemtob

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

rafael
 
C

Chris Hohmann

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top