Code 1 : ------------------------- var_dump(stream_get_contents($rr)); ------------------------- Output 1 ------------------------- string(185) "HTTP/1.1 202 Accepted Server: Apache2 Content-Length: 24 Connection: close Content-type: text/html Pragma: no-cache Cache-Control: no-cache 0: Accepted for delivery" ------------------------- Code 2 : ------------------------- $x = stream_get_contents($rr); var_dump($x); ------------------------- Output 2 ------------------------- string(0) "" ------------------------- Am i wrong ?