Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

any alternative for query string??  RSS feed

 
Mohammad Atiq Kazi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello All,

Please let me know if there is any alternative to query string for passing data. The problem is that its a hyperlink (href) through which query string is passed and hence we cannot use request or session objects. Please suggest on this..

Regards
Atiq
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Report post to moderator
GET requests have to use query strings in the URL.

POST requests have to use form style text in the body of the request.

Assuming that you are talking about a request executed on the server side, and that the service you need to talk to supports POST, look into the HttpURLConnection and related classes in the java.net package of the standard Java library. There are plenty of tutorials and articles around on this sort of thing.

Bill
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Report post to moderator
Wow, can't wait 2 hours for a response?
Double post: Here: Time 6:30am
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!