WebRequest bug - page 4

 
Mohammad Hossein Sadeghi:
The server is PHP, the most common server (78.6%) according to https://w3techs.com/technologies/overview/programming_language
I suppose the index.php is your code ? Are you using urldecode()?
 
Alain Verleyen:
I suppose the index.php is your code ? Are you using urldecode()?

The only relevant question at this point is why is WebRequest mutating encoded urls before forwarding them to the server. Choice of webserver is irrelevant. 

 
Alain Verleyen:
I suppose the index.php is your code ? Are you using urldecode()?

No, here's the .php code:

<?php
echo print_r($_GET, TRUE);
 
nicholi shen:

The only relevant question at this point is why is WebRequest mutating encoded urls before forwarding them to the server. Choice of webserver is irrelevant. 

I agree.

 

At least, developer should be able to select to let WebRequest do encoding or leave the request untouched.

 
Mohammad Hossein Sadeghi:

I agree.

Ok as you want. If you are not interested by a solution it's fine for me. I lost enough time on this topic.
 
Alain Verleyen:
Ok as you want. If you are not interested by a solution it's fine for me. I lost enough time on this topic.

I have managed to use POST method, but not always I have permission to manage the code at server side.

 
Alain Verleyen:
Ok as you want. If you are not interested by a solution it's fine for me. I lost enough time on this topic.

What is the solution?

 

At my request it was recognize as a bug by Metaquotes and fixed (at least for this specific issue using a '+', I have no details about what was done exactly).

Build 2461. This code gives now :

2020.05.29 14:09:27.915 321187 (EURUSD,H1)      Alert: Array
2020.05.29 14:09:27.916 321187 (EURUSD,H1)      (
2020.05.29 14:09:27.916 321187 (EURUSD,H1)          [param1] => Na6dIwFMr4weGnRNTYewxrpffSiYDhl0un02dGYEMv1lThKoYuUEk1Q Dmfk477k
2020.05.29 14:09:27.916 321187 (EURUSD,H1)      )
2020.05.29 14:09:27.916 321187 (EURUSD,H1)      
2020.05.29 14:09:27.956 321187 (EURUSD,H1)      Alert: Array
2020.05.29 14:09:27.956 321187 (EURUSD,H1)      (
2020.05.29 14:09:27.956 321187 (EURUSD,H1)          [param1] => Na6dIwFMr4weGnRNTYewxrpffSiYDhl0un02dGYEMv1lThKoYuUEk1Q+Dmfk477k
2020.05.29 14:09:27.956 321187 (EURUSD,H1)      )
WebRequest bug
WebRequest bug
  • 2019.08.30
  • www.mql5.com
Hello, It seems there is a bug in the URL encoding of the function WebRequest, specifically with the character '+'...
 
Alain Verleyen:

At my request it was recognize as a bug by Metaquotes and fixed (at least for this specific issue using a '+', I have no details about what was done exactly).

Build 2461. This code gives now :

Dear Alain,
Thanks, I didn't check the topic, during a new search for a feature in MQL, I ended up in this thread again, and I saw your post, your time spent on this issue is appreciated, the issue is resolved in MQL5 version, but still not in MQL4.

Reason: