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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Https

Status
Not open for further replies.

SShanker

Programmer
Mar 16, 2006
9
CA
Hello Everybody,
Server- Apache Web Server 2.0
Tomcat 4.0.6

I am new to using https.
I need to send an URL with username and password as parameters. So I am using the URL class and with http everything works just fine.I can send this url to another server with http.
How can i send it using https?
any help is greatly appreciated.
Thanks,
Sai.
 
Are you currently using the HttpUrlConnection object ?

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Hi Sedj,
To send the Url I am using only the URL object and Url Connection object and OutputStreamWriter Object.

But Just to Check the response code I am using the HttpUrlConnection object.

Actually I would like to know can I send an Https request without using the Browser?
If yes how can it be done?
Thanks,
Sai.
 
Hello Sedj,
Thanks for your prompt reply. I have a doubt. Do i need to use the "setSSLSocketFactory(SSLSocketFactory sf)" method of HttpsURLConnection?
I am asking this because I tried to use a socket before I used the URL class but it didn't work for me as the firewall wouldn't allow the connection to be created using a socket.
Thanks,
Sai.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top