I don't believe that there is such a limitation on the HTTP method parameter.
What is the error code being returned?
I don't believe that there is such a limitation on the HTTP method parameter.
What is the error code being returned?
int res = WebRequest("DELETE",url,header,0,post,result,str); if(res != 200) { Print("rescode:",res); //This print -1 } else { Print("Success"); }It just gives -1. Everything for the headers and inputs are correct. If I change to "POST" then it works, but obviously I want "DELETE" for this case since the service I am using specify DELETE to remove data.
vicknick #: It just gives -1. Everything for the headers and inputs are correct. If I change to "POST" then it works, but obviously I want "DELETE" for this case since the service I am using specify DELETE to remove data.
I will repeat my question! What was the error code?
If you not checking, then how will you know the cause?
Returns the last error
- docs.mql4.com
Then maybe it is indeed rejecting "DELETE".
Have you tried other methods to see which ones are accepted and which ones are rejected, namely DELETE, GET, HEAD, OPTIONS, POST, PUT, PATCH, TRACE?
You did mention "X-HTTP-Method-Override" ( or " X-Method-Override " ). Did you try it or did you just presume that it would fail?
According to what I found in a Google search, Binance has reinstated support for it after it was removed some time back. So it should work now.
... this should now be fixed in production. Could you try using X-HTTP-Method-Override and let us know if it’s working like it was before?
Just made a test. It seems that is is working!! Thank You guys so much.
- 2020.07.16
- angree
- dev.binance.vision
You did mention "X-HTTP-Method-Override" ( or " X-Method-Override " ). Did you try it or did you just presume that it would fail?
According to what I found in a Google search, Binance has reinstated support for it after it was removed some time back. So it should work now.
I tried both X-HTTP-Method-Override and X-Method-Override in the header, but doesn't work. The server returns 404 "Request method 'POST' not supported".
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I am trying to use DELETE method for WebRequest function, but it seems to always return error -1. There are not much discussion about this issue after some searching, besides using some windows function as workaround? Some suggest X-HTTP-method-override: DELETE but I don't think that works.
Just want to confirm if it doesn't support DELETE, and what's the usual workaround for this issue.