I have HTTP Delete method API call via WebRequest, but it reported an error with "Error in WebRequest. Error code =4051". It works while I use POST/GET method. Below is my code.
Can someone give some comments? thanks in advance.
Please use the SRC button when you post code. Thank you.
I have the same question. Does 'WebRequest' support method 'DELETE'? Can anyone clarify this? Thanks.
We need to call 'DELETE' method against the ordering system to cancel an open order.
Thanks for your clarification.
The 3rd-party ordering API is currently designed only accept 'DELETE' method for order deletion. (This does make sense
Could you please suggest a workaround for this?
Or, does MQL4 support calling a DLL or Python script? We then could workaround it.
Thanks, Alain. Finally I implemented the DELETE as below, hope it is useful for others: