LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 04-28-2007, 04:19 PM   #1
elvijs
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
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,459

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

Eg:
"GET /index.html HTTP/1.0" is the request you send to a web server,
"GET http://www.linuxquestions.org/index.html HTTP/1.0" is the one you send to a proxy server.
 
  


Reply

Tags
proxy


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 11:46 PM.

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