|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-05 10:45 UTC] derick@php.net
[2006-08-05 12:50 UTC] manikandan dot r at greynium dot com
[2006-08-05 15:01 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 07:00:01 2025 UTC |
Description: ------------ When i am accessing the remote url through CURL, got the following error: 'Empty reply from server' How to resolve it? Thanks in advance -- Mani Reproduce code: --------------- /* crawling starts here */ $ch = curl_init($url); curl_setopt ($ch, CURLOPT_FILE, $fp); curl_setopt ($ch, CURLOPT_FAILONERROR, true); curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1); /* if crawling fails, mail will be sent */ if(!curl_exec($ch)) { Expected result: ---------------- Expected to get the content of the remote url Actual result: -------------- 'Empty reply from server'