473,394 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

read webpage through automatic configuration proxy

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
1 2626
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: jnelson | last post by:
Hi all... I'm hunting for a script that would allow me to place a wide-open wireless access point in my client's business. Then, anyone connecting and then surfing a webpage would be redirected...
4
by: sebsauvage | last post by:
Hello. In one of my programs ( http://sebsauvage.net/python/webgobbler/ ), I have a global dictionnary containing the whole program configuration. Sample follows: CONFIG = {...
1
by: Joseph Morales | last post by:
I'm trying to code a free-standing VBScript, executed by Windows Script Host on a client system, to push a button on an ASP .NET webpage that is hosted by another server. Note that the script is...
3
by: hB | last post by:
Hi. Error = "The configuration system can only be set once. Configuration system is already set" Exception Details: System.InvalidOperationExcepti­on: The configuration system can only...
6
by: Nikolay Petrov | last post by:
how to initiate a file download from an asp .net page? thanks
2
by: asanford | last post by:
Hello, Is there a way to associate and set the credentials for a web proxy via the config file? We are writing a client program to access both web services (via HttpWebClientProtocol...
7
by: Mike Livenspargar | last post by:
We have an application converted from v1.1 Framework to v2.0. The executable references a class library which in turn has a web reference. The web reference 'URL Behavior' is set to dynamic. We...
3
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On...
8
by: Bill McCormick | last post by:
<!-- When deploying the service library project, the content of the config file must be added to the host's app.config file. System.Configuration does not support config files for libraries. --> ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.