By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

read webpage through automatic configuration proxy

P: n/a
I've a automatic configuration proxy (http://xxx.xxx.xxx.xxx/xyz.pac)
which I use in the Internet explorer Lan Settings to access the net.

How do I read a webpage by specifying this proxy in my PHP code. By
the by, I'm using curl to read the remote webpage.

I've tried the option
curl_setopt($ch, CURLOPT_PROXY, 'http://xxx.xxx.xxx.xx/xyz.pac');
but didn't work.

Does curl support automatic proxy configuration? If not, what is the
other way around?

Thank you,
Rajen
Dec 12 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Rajen wrote:
I've a automatic configuration proxy (http://xxx.xxx.xxx.xxx/xyz.pac)
which I use in the Internet explorer Lan Settings to access the net.

How do I read a webpage by specifying this proxy in my PHP code. By
the by, I'm using curl to read the remote webpage.

I've tried the option
curl_setopt($ch, CURLOPT_PROXY, 'http://xxx.xxx.xxx.xx/xyz.pac');
but didn't work.

Does curl support automatic proxy configuration? If not, what is the
other way around?

Thank you,
Rajen
RTFM. CURLOPT_PROXY is the proxy itself, not a configuration file.
There is no automatic configuration for CURL. Just set the options you
need in cURL. Or, if you have to use the configuration file, simply
parse it and set the appropriate options.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Dec 12 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.