View Single Post
Old 03-07-2005, 04:01 PM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
here is some code i use to consume a web service using GET, but not post. sorry it's not much help. good luck.
Code:
URL productURLRequest;
BufferedReader in;
String productURLResponse;
  
// read url
productURLRequest = new URL("http://www.myserver.com/lookup.php?ProdID=someproduct");
in = new BufferedReader(new InputStreamReader(productURLRequest.openStream()));

if((productURLResponse = in.readLine()) == null)
  productURLResponse = "0";

in.close();
__________________
Mike
sde is offline   Reply With Quote