LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 07-07-2003, 05:20 AM   #1
chandan
Member
 
Registered: Feb 2003
Location: Bangalore, India
Distribution: Fedora Core 2
Posts: 60

Rep: Reputation: 15
proxy server problem


i have written a proxy server for linux enabled to handle http requests.i assume default http port 80 for communication with the server.
it is working fine for some sites.
if i try to login to my yahoo mail account it says no such urls found
if i try groups.yahoo.com it gives a strange error message Aren't you supposed to be somewhere else
however i am able to search through google and browse through the links also
is there any link which tells how to handle different http requests and various redirections.
please help.
thanks in advance.
 
Old 07-07-2003, 05:44 AM   #2
devil_slayer
LQ Newbie
 
Registered: Jul 2003
Location: Warsaw, Poland
Distribution: Debian testing/unstable
Posts: 5

Rep: Reputation: 0
HTTP is really simple. The way it works is that the browser sends a request to the HTTP server for a certain page (like: GET/index.htm) along with some useful info about itself and the server replies with sending a header (like: HTTP1.0 OK\n Content-type: ... \nContent-length: ...\nSome info about server...) and the whole file as-is, and immediatley terminates the connection. When the browser recives the page it scans for anything else it might need to download (images, frames, stuff) and sends an identical request to the server again repeating the same process (like: GET /images/image01.jpg).

As for links is concered, it's the responsibility of the browser to follow all the links and not the server, so you can have a page with the images that have sources on a completely different server, but it's the browsers responsibility to connect to the right server and fetch the required data.

So it's wierd that the proxy doesn't work. Maybe a bug?

Another thought occurs: what about cookies? How are they treated?

Hope this helps even slightly...
 
  


Reply



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
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 11:25 AM
read socket problem (proxy server related) jnusa Programming 9 11-25-2004 09:31 AM
Proxy problem: can`t connect SSH through proxy... bugzilla Linux - Networking 3 09-16-2004 10:36 AM
Problem setting up web proxy server MadCactus Linux - Networking 2 11-21-2003 06:46 AM
Problem whith proxy server zokter Linux - Networking 1 09-28-2003 01:34 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:46 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