[appengine-java] Re: How to add parameters to HTTP Post

2011-04-26 Thread Adam Duke
Are you looking to write the parameters as application/x-form- urlencoded into the POST body or simply add them as parameters in the url? For the case where you want to write to the post body I have had success with something like the following: //create the url encoded post body as a string

[appengine-java] Re: How to add parameters to HTTP Post

2011-04-26 Thread hector@ISB
something like this... import com.google.appengine.api.urlfetch.*; import static com.google.appengine.api.urlfetch.HTTPMethod.POST; import static com.google.appengine.api.urlfetch.FetchOptions.Builder.withDeadline; import static com.google.appengine.api.urlfetch.URLFetchServiceFactory.getURLFetc

[appengine-java] Re: How to add parameters to HTTP Post

2011-04-26 Thread hector@ISB
import com.google.appengine.api.urlfetch.*; import static com.google.appengine.api.urlfetch.HTTPMethod.POST; import static com.google.appengine.api.urlfetch.FetchOptions.Builder.withDeadline; import static com.google.appengine.api.urlfetch.URLFetchServiceFactory.getURLFetchService; public class

[appengine-java] Re: How to add parameters to HTTP Post

2011-04-27 Thread Icarus
Thanks hector and Adam, This works. On Apr 27, 3:02 am, "hector@ISB" wrote: > import com.google.appengine.api.urlfetch.*; > import static com.google.appengine.api.urlfetch.HTTPMethod.POST; > import static > com.google.appengine.api.urlfetch.FetchOptions.Builder.withDeadline; > import static >