java - Http 400 in appengine when using URLFetch with Http Method 'DELETE' -
I am unable to request "DELETE" using the code given below:
URLFetchService fetchService = URLFetchServiceFactory.getURLFetchService (); URL posturals = new URL ("http://www.example.com/comment?token=xxx"); HTTPResponse response = fetchService.fetch (new HTTPRequest (posturl, HTTPMethod.DELETE)); Int responseCode = response.getResponseCode (); This is for Google Appengine 'DELETE' request is for the Facebook Graph API. The above code gives me a status code 400 - bad request.
This is an open source Java library that I have created for the Facebook Graph API.
This is not really an app engine problem; This means that the destination webserver will not accept your request.
If you are actually trying to send DELETE to example.com, this is your problem. If this is considered a clear URL, then you have left the problem that facilitates troubleshooting.
Comments
Post a Comment