开发者

CURLOPT_FOLLOWLOCATION equivalent for socket adapter in Zend_Http_client

I would like to use the socket adapter instead of Curl for my code but however this the problem i am facing.

(case 1 :) I am querying a server for response using Zend_http_client (default socket adapter) and I am getting a 404 error,

(case 2 :) while, for the same server as above, I am getting开发者_如何学C a response back when using CURL adapter with CURLOPT_FOLLOWLOCATION set to boolean true. Also, if I remove this parameter (CURLOPT_FOLLOWLOCATION) from the config array , I get the same error as in the case 1.

So, setting the CURLOPT_FOLLOWLOCATION should be doing the trick (yes, there is internal redirection happening in the target server) and hence I am looking for an equivalent parameter/option for in case of Socket Adapter.

Any help is greatly appreciated. Thanks in advance

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜