LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-22-2011, 12:27 PM   #1
concordfta
LQ Newbie
 
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
Squid proxy from/though url weblink


Hello,

OK, I'm at my wits end, google, forums, docs... nothing! I'm not even sure what the proper term for this is.

I have a working Squid server on a remote box, using default port 3128. If I setup my browser to use the proxy server and port it works 100%

Now, how can I test/use the squid proxy without setting up the proxy settings in the web browser or implementing a transparent/intercept proxy by doing the following:

From the browser entering the URL:

http://www.mysquidbox.com:3128/?url=...m/document.txt

What is the URL syntax to do this? The method above gives me this error:

Code:
ERROR

The requested URL could not be retrieved

Invalid Request error was encountered while trying to process the request:

GET /?url=http://www.someserver.com/document.com HTTP/1.1
Host: www.mysquidbox.com:3128
Connection: keep-alive
Cache-Control: max-age=0
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
There must be a way to do this? I know I can't just grab a complete page using this method since I would have to url_rewrite every get statement through the proxy, but I can't even get one item?

What would the be called? And how can I do this? Where is this documented?
 
Old 10-07-2011, 08:08 AM   #2
cardy
Member
 
Registered: Jan 2005
Location: Shropshire, England, UK
Distribution: RedHat, Fedora, CentOS..........
Posts: 121

Rep: Reputation: 19
Squid is a proper web proxy that will require your browser to be configured correctly in order to use it, if your trying to setup a web server which can give you access to pages you need something like phpproxy.


https://bitbucket.org/arkadi/phpproxy


I should point out I have not tested that code so use it at your own risk but your original method above as far as I know with Squid will not work as its not part of the protocol squid uses.
 
  


Reply


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
Redirect one url to other squid proxy server. bhimarora Linux - Newbie 1 07-05-2010 04:46 AM
Cannot Redirect URL to another URL when the link is down with Squid marx_long Linux - Newbie 1 06-13-2010 08:59 PM
squid redirect url to different proxy aeby Linux - Software 0 08-13-2009 08:37 AM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:22 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration