Nasıl PHP kurulum HTTP Proxy ayarlarına?

1 Cevap php

I am trying to write a program in PHP which I had already written in Java. I had used the following statements to setup proxy in Java

System.setProperty("http.proxyHost",proxyhost);
System.setProperty("http.proxyPort",proxyport);

Nasıl PHP için aynı yapıyorsunuz?

1 Cevap

Ben transferini yürütmek için cURL uzantısını kullanmak ve kıvırmak için ilgili proxy seçeneklerini geçmesi gerekebilir düşünüyorum.

cURL Extension

curl_setopt cURL oturumuna seçenekleri geçmek için işlev

İhtiyacınız vekil seçenekleri şunlardır: CURL_PROXY ve CURL_PROXYPORT.