• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to pass params in a HTTPS call from plain java classes?  RSS feed

 
R Ramesh
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to make https request to a remote system.I have ONLY j2sdk1.4 environment in my machine and i don't have any application servers. I know that using java.net package i can make HTTPS call.
My question is
1. The remote system excepts me to pass HTTPS-GET parameter. How i can pass parameter after i made URL connection?

Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDK 1.4 includes the javax.net.HttpsUrlConnection class, which should be sufficient for your purposes. The easiest way to use GET parameters is to include them in the URL, just like you see them in the URL field in a web browser.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!