• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do you use doPost from client ?  RSS feed

 
Alex Parvan
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In J2ME i can use this:
setRequestMethod(HttpConnection.POST);
But what about J2SE ?
I tried with conn.setDoOutput(true); but it's not doing anything.

Please help, thank you.
Alex
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at HttpURLConnection's API documentation.
There's a method in there somewhere that allows control over the request method.
 
Alex Parvan
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alright, thanks, i found it.

But i still can't access doPost...

Again it's not doing anything.

Any help please ?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!