Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-28-2007, 04:19 PM   #1
LQ Newbie
Registered: Nov 2006
Location: Latvia
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
Sending a request to a proxy server

I'd like to know how to send a request to a proxy server. Is it done by headers like HTTP requests? For example I want to send a HTTP request to a web server through some proxy server. How is it done and can PHP (or any other web programming language) do that?
Old 04-29-2007, 01:44 AM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,703

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Just replace the path with a full URL in the HTTP request.

"GET /index.html HTTP/1.0" is the request you send to a web server,
"GET HTTP/1.0" is the one you send to a proxy server.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error sending status request (Operation not permitted) Reegz Linux - Server 8 09-05-2010 10:15 PM
/etc/audit.rules - Error sending watch insert request Linux_Learner[LL] Linux - Security 2 07-16-2006 07:19 AM
sending an arp request jagman Programming 2 02-27-2006 02:59 PM
Sending hostname along with DHCP request adz Linux - Networking 4 10-23-2003 10:15 AM
{REQUEST HELP} Proxy server with two satellite cards sachin969 Linux - Networking 3 07-19-2002 03:13 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration