Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

URL Connection  RSS feed

 
Harry Singh
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gurus,
I am just a novice in JSP/servlets. so here for some help from u guys.. basically i wanna pass some request parameters to a URL.How can i do that... one way is that i should append the request parameters as quesry strings.. but i checked the URL and it is not supporting query string... so how can i pass the data to some third party URL.Like wanna submit sumthing to a search engine and wanna get back the results in file.Any help in this would be great..
Thanks in advance.
Regards,
Harjinder
 
Ouaknin lionel
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class URL
protected void set(String protocol,
String host,
int port,
String authority,
String userInfo,
String path,
String query,
String ref)

use URLConnectin.setRequestMethod(String method) with method = "POST" or "GET"...
[ September 20, 2003: Message edited by: Ouaknin lionel ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!