We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get errors when using it like this /v1/users/ java.net.ProtocolException: Invalid HTTP method: PATCH
The text was updated successfully, but these errors were encountered:
Hi, sorry for the delay in response, I don' t think the underlying HttpUrlConnection class supports PATCH so I don't think it is possible.
HttpUrlConnection
PATCH
Usually most APIs support another request method in lieu of patch. For example the GitHub API supports using POST requests instead of PATCH.
POST
Sorry, something went wrong.
Hi @kevinsawicki, @braghome
HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); connection.setRequestMethod("PATCH");
Unfortunately it will only accept for "OPTIONS", "GET", "HEAD", "POST", "PUT", "DELETE", "TRACE"
Someone should try to override it. See what happens, Like in square/okhttp#498, but removed in square/retrofit#425
More discussion on https://www.mail-archive.com/[email protected]/msg02078.html
No branches or pull requests
I get errors when using it like this
/v1/users/ java.net.ProtocolException: Invalid HTTP method: PATCH
The text was updated successfully, but these errors were encountered: