Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > URL Request (Newbie)

Reply
Thread Tools

URL Request (Newbie)

 
 
Guest
Posts: n/a
 
      02-18-2004
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






 
Reply With Quote
 
 
 
 
Rafael Chemtob
Guest
Posts: n/a
 
      02-18-2004
use the reqest object.
IE. request.form ("<variable name>")
or request.item ("<variable name>")

rafael
<me> wrote in message news:(E-Mail Removed)...
> 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
>
>
>
>
>
>



 
Reply With Quote
 
 
 
 
Chris Hohmann
Guest
Posts: n/a
 
      02-18-2004
<me> wrote in message news:(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to redirect every urel request to test.py script with thevisitors page request as url parameter. Νίκος Python 1 07-21-2010 03:04 AM
Malformed URL by using Page.Request.Url.ToString() - why? =?Utf-8?B?QXhlbCBEYWhtZW4=?= ASP .Net 3 04-18-2007 06:45 AM
Request.URL.LocalPath shows incorrect Url.LocalPath/SCRIPT_NAME in specific cases mews.microsoft.com ASP General 0 03-02-2005 02:29 PM
request.getRequestDispatcher(url).forward(request,response); problem jrefactors@hotmail.com Java 1 12-29-2004 05:13 AM
Re: Accessing Request.InputStream / Request.BinaryRead *as the request is occuring*: How??? Brian Birtle ASP .Net 2 10-16-2003 02:11 PM



Advertisments