Hi All,
I have asked this to many .NET and Java programmers and they just cant seem to grasp my requirement, so I will ask my
trusty Perl buddies who will be able to relate better (from the perl side of things)..
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 can be 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
I have asked this to many .NET and Java programmers and they just cant seem to grasp my requirement, so I will ask my
trusty Perl buddies who will be able to relate better (from the perl side of things)..
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 can be 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