Good question...

T

temp

can i do something like this in C# / VB.NET?

========================================================================

my $agent = LWP::UserAgent->new (requests_redirectable => ['POST','GET',
'HEAD']);
$agent->agent("Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");
$agent->cookie_jar(HTTP::Cookies->new(autosave=>1));

my $url="http://www.comcom.com/login.asp";
my $result = $agent->get($url);

%formfields = (status => 1,
username => 'myuser',
password => 'mypassword');

$result = $agent->post($url, \%formfields);
my $html = $result->content();
if ( $html =~ /password/i) {
$errStr .= "Login to $url failed - Customer# $customerID: $";
return 0;
}


========================================================================

Tnx.
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top