at
Tue Mar 15 09:04:42 CST 2005
A proxy forwards requests and responses between client and server. In the
process it can save a copy of what is being send including the headers.
Client normally connect to port 80 (HTPP). When a proxy is started it
listens on another port so the client has to connect to that other port for
web access. The proxy than forwards to the target on port 80 and vice versa.
It is like a bridge. On the bridge there is a person seeing all who pass.
There are several proxies available for download on the web. Just get some
and see if you can get then running on your own machine. Once you have found
one you like (that saves headers for you) and know how it operates you can
let your Romanian customers use it.
"Kristof Thys" <Kristof.Thys@luc.ac.be> wrote in message
news:d16t0s$ari$2@ikaria.belnet.be...
> I'm sorry for my stupidity, but I don't know exactly what you are talking
> about... I'm not using a http logging proxy, but where can I download
> something like that and how can I use it? What does it do exactly?
>
> thx
>
> at wrote:
>> That makes it rather difficult! But...
>>
>> Can you have the client person in Romania use a http logging proxy? So
>> that you can get at the headers being send? Do you run a client yourself
>> as well by the way? Do you get the headers it sends?
>>
>>
>> "Kristof Thys" <Kristof.Thys@luc.ac.be> wrote in message
>> news:d16se6$ari$1@ikaria.belnet.be...
>>
>>>I don't own the server, so running ethereal there is a problem... Running
>>>ethereal on the failing client isn't easy neither, because the failing
>>>client situates in Romania, while I'm from Belgium...
>>>
>>>But when I try to change my IE settings, and block all cookies,
>>>everything keeps working... Even browsing to the url with IE...
>>>
>>>Tricky problem :S
>>>
>>>at wrote:
>>>
>>>>If you use ethereal on the serverside and run a working client, do you
>>>>see any cookie stuff in the received http headers? It looks to me the
>>>>client that does not work does not send cookie. It is my assumption that
>>>>a cookie should be passed as part of the request.
>>>>
>>>>If you are unable to sit behind the server, check cookie settings on the
>>>>client.
>>>>
>>>>Or, use I.E. from the failing client and see what headers get send.
>>>>
>>>>"Kristof Thys" <Kristof.Thys@luc.ac.be> wrote in message
>>>>news:d16r3a$9tj$1@ikaria.belnet.be...
>>>>
>>>>
>>>>>at wrote:
>>>>>
>>>>>
>>>>>>What is the url? String, uri?
>>>>>>
>>>>>>What do you get in s?
>>>>>>
>>>>>>string s;
>>>>>>HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
>>>>>>HttpWebResponse response;
>>>>>>try
>>>>>>{
>>>>>>response = (HttpWebResponse)request.GetResponse();
>>>>>>response.Close();
>>>>>>}
>>>>>>catch(Exception ex)
>>>>>>{
>>>>>>s = ex.ToString();
>>>>>>WriteToLog(LogType.Info, s);
>>>>>>}
>>>>>>response = null;
>>>>>>
>>>>>>
>>>>>>"Kristof Thys" <Kristof.Thys@luc.ac.be> wrote in message
>>>>>>news:d16q4c$93a$1@ikaria.belnet.be...
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Landi wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>You are not going to catch anything with Ethereal. He is not having
>>>>>>>>any
>>>>>>>>communication with the server at all and that is why his code is
>>>>>>>>throwing an
>>>>>>>>exception. Even if there is anything showing up on the log he
>>>>>>>>probably wont
>>>>>>>>know what to look for.
>>>>>>>
>>>>>>>The question remains, why isn't there any communication?
>>>>>>>It is possible to use a browser, IE or any other, to go to the URL
>>>>>>>from the pc where the program throws an exception at the exact same
>>>>>>>moment...
>>>>>>>So it seems to me, the server is just doing fine, but the client pc
>>>>>>>is blocking the request/response for an unknown reason...
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>The url is
>>>>>
http://beta.soccerproject.com/man_tool.php?login=OscarCookie&pw=newsgroup
>>>>>
>>>>>The exception I'm getting is "The underlying connection was closed:
>>>>>Unable to connect to the remote server."
>>>>>And right after that: System.NullReferenceException: Object reference
>>>>>not set to an instance of an object.
>>>>>I don't see where the second exception comes from...
>>>>>
>>>>>The exact code is this:
>>>>>
>>>>>HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
>>>>>HttpWebResponse response=null;
>>>>>try
>>>>>{
>>>>> response = (HttpWebResponse)request.GetResponse();
>>>>> response.Close();
>>>>>}
>>>>>catch(Exception ex)
>>>>>{
>>>>> WriteToLog(LogType.Info, ex.ToString());
>>>>>}
>>>>>
>>>>>if(response == null)
>>>>>{
>>>>>CGlobals.WriteToLog(LogType.Info,"Response = NULL");
>>>>>//He's not coming here...
>>>>>timeOut = true;
>>>>>}
>>>>>
>>>>>XHTML = "";
>>>>>if(!timeOut)
>>>>>{
>>>>> StreamReader reader = new treamReader(response.GetResponseStream());
>>>>> XHTML = reader.ReadToEnd();
>>>>>}
>>>>>
>>>>>
>>>>>BTW: Thanks for your patient help...
>>>>
>>>>
>>