How to HTTPS with authentication and extra properties?

C

carl

The following PERL code snipet request
(automated client request, OR, it can be JUST A PLAIN BROWSER REQUEST)
needs to be converted to Java2-1.3:

$urlreq="https://myname:[email protected]/apps/animalsX?DOG=boxer&COLOR=brown"
$ua->agent("Mozilla/3.0");
my $request = new HTTPS::Request('GET', $urlreq);
$request->content_type('application/x-www-form-urlencoded');
..
.. (collect data and save it).
..

Anyone have a snipet sample, in Java, of how I do this?

HTTPS seems makes things a bit more complicated in Java.

Is there just as easy a way in a Java client
(by putting name/passwd and property data in with URL) or
how would I submit the URL connection by creating individual
properties?

A bit lost and cornfused . . .


TIA,
Carl
 
C

Carl

Hey, Will pay $$$$ for an answer!
This is important to me (unless your figure is too high)

Carl
 
C

Christophe Vanfleteren

carl said:
The following PERL code snipet request
(automated client request, OR, it can be JUST A PLAIN BROWSER REQUEST)
needs to be converted to Java2-1.3:

$urlreq="https://myname:[email protected]/apps animalsX?DOG=boxer&COLOR=brown"
$ua->agent("Mozilla/3.0");
my $request = new HTTPS::Request('GET', $urlreq);
$request->content_type('application/x-www-form-urlencoded');
.
. (collect data and save it).
.

Anyone have a snipet sample, in Java, of how I do this?

HTTPS seems makes things a bit more complicated in Java.

Is there just as easy a way in a Java client
(by putting name/passwd and property data in with URL) or
how would I submit the URL connection by creating individual
properties?

A bit lost and cornfused . . .


TIA,
Carl

Jakarta commons HttpClient can do https:

http://jakarta.apache.org/commons/httpclient/
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top