#define BUFSIZ 128
string sBuffer = ""; while (TRUE) { if (InternetReadFile(hReq, sBuffer, BUFSIZ, lReturn) <= 0 || lReturn[0] == 0) {......
You are supplying a buffer with zero length, while allowing 128 bytes to be rewritten.
Okay so from what I got from that thread, I'd have to supply a sBuffer variable of equivalent length? I tried this and it seems to have fixed the problem but it feels a bit weird to be the real solution.
string sBuffer = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
NEED FURTHER HELP
Now I'm having trouble sending the POST request. When httpsendrequesta goes through, it doesn't do it via POST. I have php code on my server to verify this and its not recognizing. If I sent the file along with it, it outright throws a 500 error. If I append no file, it goes through and returns the output ... BUT it's not a POSt request which totally defeats the purpose. Any ideas?
btw Verified the buffer solution: https://forum.mql4.com/6778#310062 . Thanks Ovo!

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
Hey guys, here's my situation.
I have an EA that I use for alerting me of changes on an indicator via the iCustom function.
I have another script that does an HTTP request to my server.
Both seem to work right on their own. But once I try to combine them, things get wack.
The script is below. I basically ripped the twitpic script for the http part: https://www.mql5.com/en/code/10122
What happens is that on first iteration, things seem to be going well. Then on next iteration the following error appears during the iCustom calls:
2013.11.11 20:12:34 Cannot open file 'C:\Program Files\OANDA - MetaTrader\experts\indicators\ror page -->
padding to disable MSIE and Chrome friendly eetected a new trend zhou. Hold onto your seats.ex4'
What's interesting about this is that it seems to be the rough combination of the response string from the http and the Alert string I have below for my indicator. What confuses me though is that I'm getting no compile errrors and I can't find any unescaped strings.
Anyone have any idea what's going on?