
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi!
that's a really useful idea ... and the GET part works flawlessly, but the POST part neither work for me.
My code is :
The fact is that the request don't seem to reach the server, nothing appear in the Apache log. I have been testing by code blocks, and i've found that the program returns after HttpSendRequestA call, so the request is unsuccessful. I've tried to import the GetLastError function from wininet to gather some extra information about the error, but it doesn't seem possible due the fact that there is a function with the same name in mql4.
I've also checked the contents of the _req.txt file :
Maybe there is a problem with the generation routine of request[] ? It would be simpler if we disable the capability of upload files ? Any idea for further debugging will be appreciated.
By the way i've tested your twitpic code and neither work for me. Can then be a problem with the wininet version ?¿ I'm using Win XP.
Thanks !!!
Josep M.
Thank you very much gunzip.
Now MT4 can communicate with PHP ....
This no longer works in MT4 build 600, can we please get an update?
MT4 Build 600+ includes the WebRequest() function which directly supports Http Get and Post operations from within MT4 code. See WebRequest within Help or https://docs.mql4.com/common/webrequest
The changes required probably just involve changing A (Ansi) WinInit.dll calls to the W (Unicode) equivalent, though you may not need to use this library at all thanks to the following:
MT4 Build 600+ includes the WebRequest() function which directly supports Http Get and Post operations from within MT4 code. See WebRequest within Help or https://docs.mql4.com/common/webrequest
Thanks for the update autoabacusmt5. I use MT4 build 646, but function WebRequest() is not found. And at "Tools => Option => Expert Advisor" tab, i can not put allowed URL there (no input form). Do i miss something ?
Hi autoabacusmt5,
the WebRequest works great after i upgrade my MT4 from build 646 to build 670.
Thanks