Review your favorite Linux distribution.
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 12-01-2003, 05:03 AM   #1
Registered: Sep 2003
Distribution: Zenwalk 2.8
Posts: 37

Rep: Reputation: 15
How to tell proxy to close a connection ?


I'm developing a proxy checker tool in C++. My problem is
that, once I sent the GET request to the proxy, it doesn't close
the connection. In the main code of the program I have a while
loop that keeps reading the HTTP headers the proxy sends, but
this loop never ends in mavy cases or it ends after several
minutes when finally the proxy close the connection. The
GET string is like this:

GET http://xxx..231.184:32000 /linux/rulez/forever.html HTTP/1.1\r\nHost:\r\nProxy-Connection: close\r\n\r\n"

How to instruct the proxy to close the connection ?
I have also tried to send the HTTP/1.1 200 OK but nothing
to do !

Please help

Last edited by gt73; 12-01-2003 at 05:10 AM.


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
FC3, dovecot connection close after correct login... jingi Fedora - Installation 0 11-28-2005 03:25 AM
Perl: Wait for ssh connection to close kenneho Programming 9 10-29-2005 09:19 AM
Slackware 10.0 proxy connection Theylan Linux - Newbie 1 12-06-2004 09:03 AM
Game server shutting down when I close my SSH connection jader9920 Linux - Software 7 01-05-2004 07:38 PM
Apache 1.3.20 close connection on HTTP 1.1 400 500 errors dafri Linux - Software 4 01-14-2003 08:50 AM > Forums > Non-*NIX Forums > Programming

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

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