Hi all,
I came across a new issue in curl request with php.
I need to fetch a document from other host http://xyz.com/content.html. I cannot view that page without login credentials. So I have given http://user:pwd@xyz.com/content.html?get1=x&get2=y.
I can send a successfull curl request to that page in a command line on my server.
curl --connect-timeout 30 http://user:pwd@xyz.com/content.html?get1=x\&get2=y.
So I have given in my code
(IM using 'simple_html_dom.php')
$html = file_get_html("http://user:pwd@xyz.com/content.html?get1=x&get2=y");
This one not yielding the result and doesnot even produce any errors.
Though I can yield the result by giving "php -f myfile.php" on my server host.
What is that am I missing here. ??
Any help will be much appreciated
Thanks
Sugumaran