Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   URL Request (Newbie) (http://www.velocityreviews.com/forums/t793432-url-request-newbie.html)

02-18-2004 04:34 PM

URL Request (Newbie)
 
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 02-18-2004 05:02 PM

Re: URL Request (Newbie)
 
use the reqest object.
IE. request.form ("<variable name>")
or request.item ("<variable name>")

rafael
<me> wrote in message news:9e2dneDt-4WaCa7dRVn-hQ@comcast.com...
> 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
>
>
>
>
>
>




Chris Hohmann 02-18-2004 07:11 PM

Re: URL Request (Newbie)
 
<me> wrote in message news:9e2dneDt-4WaCa7dRVn-hQ@comcast.com...
> 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...om_resomre.asp

ServerXMLHTTP:
http://msdn.microsoft.com/library/en...quest_7zlc.asp





All times are GMT. The time now is 04:52 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.