| Author |
POST request from Java app
|
Kedar Dravid
Ranch Hand
Joined: May 28, 2004
Posts: 333
|
|
|
Is it possible to make a POST request from within a Java application. How exactly can this be achieved?
|
 |
Nathaniel Stoddard
Ranch Hand
Joined: May 29, 2003
Posts: 1258
|
|
|
Yes. Take a look at the classes in the java.net package.
|
Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24057
|
|
|
More specifically, you want to use the URLConnection class. The "setDoOutput()" method is the key to whether you'll make a GET or a POST.
|
[Jess in Action][AskingGoodQuestions]
|
 |
 |
|
|
subject: POST request from Java app
|
|
|