Selected Category: PHP (2)

View Mode: Post List Post Summary
過proxy,加上:
curl_setopt($curl, CURLOPT_PROXY, "http://10.X.X.X:3128/");
curl_setopt($curl, CURLOPT_PROXYPORT, 3128);

SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
加上:
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);

Posted by beerlee88 at 痞客邦 PIXNET Comments(0) Trackback(0) Hits(141)



Reference
http-post-data
http-post-fields

Sample Code
stream_context_create


update: 2009/4/27 哈哈!之前自已送request太累了,用PHP給的吧。

Posted by beerlee88 at 痞客邦 PIXNET Comments(0) Trackback(0) Hits(450)