Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.NET browser object for complex work

Status
Not open for further replies.

JD9955

Programmer
Apr 16, 2007
15
US
Hi All,


I am after a result which will mimick the following perl code in .NET (using a browser object) (i.e. LWP)

##########################
use lwp::useragent;
my $ua = new lwp::useragent;

my $response
= $ua->post('{ param1 => 'value1',
param2 => 'value2',
});

my $content = $response->content;

###########################

essentially (as you all probably know) what the above code does is posts a form to the web server with specified values

(which can represent a text box value for eg) ,, eg in the above case param1 could be userName and value1 could be the

uName value, like wise param2 could be password and value2 could be the password value.. (ie to simulate a login on a

server)..

This is how it is done in perl, however I require to do this in .NET or Java (preferably .NET) (with also the support for the

https protocol) . In perl this was using the openssl package ..

Any ideas on how this can be done using some (similar) browser object as a first step??

I saw the following .NET browser code..


however this just mimics the recieving of pages inside the browser page..

It would be great if anyone know of something out there that can mimics the LWP funcionality in .NET (or Java) ..

I would have used the LWP module in a perl script, however one complexity is stopping me,, I need to render a java applet

on the client prior to sending data through to the server..

So, (and sorry for the extensive speech) ..

I require either

A) .NET or Java which can mimic LWP (with openssl) and post pages and read content of recieved pages.
or
B) Perl's LWP to somehow be used to call javascript to invoke a java applet, prior to doing the above.. (I have googled for

this and no one has seemed to have pulled it off).



Cheers (and thanks for reading this far).. :)


JD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top