I do this to pull data from a CGI script using POST method:
$sock = fsockopen($server, 80, $err_num, $err_desc, 300);
if ($sock == false)
print("Problems upon connection to ".$server." !");
fputs($sock, "POST $page HTTP/1.0
$lines = rtrim(fgets($sock));
Any ideas why the site doesn't look as good as if I browsed to it when outputing the $lines array? It's not identical...
0 · ·