Can a servlet act as an HTTP client?

Alex Chaffee

Yes. Use the standard java.net.URL class, or "roll your own" using java.net.Socket. See the HTTP spec at W3C for more detail.

Feedback to this FAQ has additional information about initiating an HTTP connection from Java.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact