• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP request from normal java class

 
maha raja
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heei All,
I wanna make a HTTP request to my servlet which is deployed under WAS4.0 through a normal java class , is there any way to achive this.
Looking forward to hearing from all,
Greetings
NPA.
 
Tina Coleman
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the URLConnection and HttpURLConnection classes in java.net. Sample code (hacked from existing code that was used for a proof-of-concept prototype - it's not my best, but it'll do to show the concept).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!