Download MetaTrader 5

WebRequest returns -1 with error 5203 for HTTPS POST

To add comments, please log in or register
alaeddin
13
alaeddin  

Hi,

I'm posting a https request in my EA but the WebRequest returns -1 with error 5203 ERR_WEBREQUEST_REQUEST_FAILED. What do you think the problem is?

 

Thanks,

 Ala 

JC
1456
JC  
WHRoeder:
Where does it say a httpS can be done?

From https://www.mql5.com/en/docs/common/webrequest:

Server port is automatically selected on the basis of the specified protocol - 80 for "http://" and 443 for "https://". 

whroeder1
14779
whroeder1  
I stand corrected; the mql4 doc also states that.
dbuckle
176
dbuckle  
alaeddin, I know this is an old thread but did you work out why you were getting error 5203.  I'm getting the same and I can't see what might be wrong.  I'm just POSTing to HTTP with 1 header and a body.
Alain Verleyen
Moderator
31183
Alain Verleyen  
dbuckle:
alaeddin, I know this is an old thread but did you work out why you were getting error 5203.  I'm getting the same and I can't see what might be wrong.  I'm just POSTing to HTTP with 1 header and a body.
Show your code if you want help.
To add comments, please log in or register