I just stumbled upon this:
search.php:
Code: Select all
<?php
print $_GET['arg'];
?>Code: Select all
<?php
print "a) " . file_get_contents("http://server/search.php?arg=oneword", "r");
print "b) " . file_get_contents("http://server/search.php?arg=two words", "r");
?>Code: Select all
a) oneword
b) Warning: file_get_contents(http://server/search.php?arg=two words) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in ...