aspose file tools
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 Head First Android this week in the Android 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: 2409
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: 12981
    
    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?.
 
It's not a secret anymore!