GET command is giving two kinds of ouput,why???
Posted
by developer
on Stack Overflow
See other posts from Stack Overflow
or by developer
Published on 2010-04-20T12:20:00Z
Indexed on
2010/04/20
12:23 UTC
Read the original article
Hit count: 224
iam using GET command to get the content of a page.When i write the same command on shell prompt it gives correct result but when i use that in PHP file then sometimes its giving correct result but sometimes it gives only half of the content i.e. end-half portion only.
Iam using following command in shell script :-
GET http://www.abc.com/ -H "Referer:http://www.abcd.com/"
and following in PHP file :-
$data=exec('GET http://www.abc.com/ -H "Referer:http://www.abcd.com/"');
echo $data;
Now please tell why this command is not giving full content of the page when im using it in php file.
© Stack Overflow or respective owner