HTTP Response
-
@fxDreema
Hi, i have the same problem, how did you fixed it?thanks
-
Hi,
I'm trying to reference a response from a webpage that I'm pinging with the "Send HTTP Request" block. The response is coming back and showing in the Alerts window, but is showing the number Zero in the Comments block. The main problem is that HTTP Response is not being recognized in the Conditions block, or it's only recognizing 0.
Here's the setup which references the only text on the webpage which is "SBUOB"
And the response come through in the alert ok:
But the Condition block does not pass. If I send it direct to the Comment only it shows "0":
Any ideas why it's not seeing the response as SBUOB and unable to reference it in the Conditions block?
Cheers
Cam
-
I think it works now. There was a problem with one data type
-
Thanks, it works now!
-
This was back in 2016, I have no idea how I fixed it. Now it could be different problem. I will take a look
-
I tried the block and it works for me.
First you must add the URL in the options in MT4.
Then in the block you can write delimiter, any single symbol, for example comma. Then you would expect the response from the server as comma-separated values. For example "value1,value2,value3".
Then when you get the answer, if you set the key to be 0, then "value1" will be read. If the key is 1, then "value2" will be read. And so on...