WebRequest bug - page 4

To add comments, please log in or register
Alain Verleyen
40310
Alain Verleyen  
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()?
nicholi shen
2624
nicholi shen  
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. 

Mohammad Hossein Sadeghi
3223
Mohammad Hossein Sadeghi  
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);
Mohammad Hossein Sadeghi
3223
Mohammad Hossein Sadeghi  
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.

Mohammad Hossein Sadeghi
3223
Mohammad Hossein Sadeghi  

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

Alain Verleyen
40310
Alain Verleyen  
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.
Mohammad Hossein Sadeghi
3223
Mohammad Hossein Sadeghi  
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.

nicholi shen
2624
nicholi shen  
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?

To add comments, please log in or register