473,660 Members | 2,459 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2644
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*******@attgl obal.net
=============== ===

Dec 12 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2134
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 to a default webpage for their username/password. Once they log-in, they can surf as normal until they close their browser. Each new browser session would require a new cookie/login to surf the web. Has anyone seen a script that can do this?...
4
1737
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 = { "network.http.useproxy" : True, "network.http.proxy.address": "proxy.free.fr", "network.http.proxy.port" : 3128 }
1
2903
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 not part of a webpage and does not execute in a web browser. Instead, the script uses Msxml2.XMLHTTP to send an HTTP request. To figure out what to include in the request body, I used a Proxy Trace utility and captured the data that is sent when you...
3
2385
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 be set once. Configuration system is already set
6
1037
by: Nikolay Petrov | last post by:
how to initiate a file download from an asp .net page? thanks
2
5008
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 subclasses) and direct web requests (via WebRequest subclasses.) In some cases, we need to go thru a WebProxy, and in other cases, we go direct. We are able to control this in the client's configuration file (app.config or machine.config) via the...
7
22483
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 added an entry to the executable's .exe.config file to specify the URL, and under the 1.1 framework this worked well. Unfortunately, this is not working under the 2.0 framework. I see in the Reference.cs file under the web service reference the...
3
4416
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 the other machine I get the error upon instantiating the service client. I add the reference by choosing Add Service Reference from the project menu, and pointing to the remote wsdl file. I can't seem to find what the difference between the two...
8
3168
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. --> I assume "libraries" here to mean DLL's. If that's the case, is there any way to supply both ends of a service (client and host) with the code for the class that describes the contact WITHOUT a duplication in source code? Thanks.
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8754
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7362
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4343
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2760
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1984
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.