• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

URL Connection

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic