This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Sockets and Internet Protocols and the fly likes How to post a http POST request in java?. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "How to post a http POST request in java?." Watch "How to post a http POST request in java?." New topic
Author

How to post a http POST request in java?.

Sandy Marar
Greenhorn

Joined: Dec 22, 2011
Posts: 16
How can I make a post request to https://graph.facebook.com/<app-id>/subscriptions and then get the response?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
In the simplest case like this: http://www.exampledepot.com/egs/java.net/Post.html
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
The open source Apache HttpClient toolkit is really helpful.

Bill
pollo star
Greenhorn

Joined: Mar 06, 2012
Posts: 2
A post request can be used for multiple purposes on the web. It can be used for performing the create or update operations for various resources.
 
Consider Paul's rocket mass heater.
 
subject: How to post a http POST request in java?.