Download MetaTrader 5

Resolving http POST webrequests of

To add comments, please log in or register
angzhanyu
9
angzhanyu  

Hello MQL4 community,

Does anyone know of a way to resolve http POST webrequests in the form of "https://username:password@site.com/urlhandlers..."? Apparently the MQL4 webrequest function does not accept URLs in that form (I've allowed permutations of the URL already in the options setting, before you ask). A normal HTTP POST in the format of https://site.com/... works but I require basic authentication for my workflow. I have tried repeatedly googling the issue and searching around the forums here and am completely lost. Any kind soul willing to enlighten me?

Alain Verleyen
Moderator
33481
Alain Verleyen  

Actually this is not an mql issue.

You need to learn a bit how http requests are working. To use basic authentication, you have to use request headers.

To add comments, please log in or register