Re: [twsocket] Do You have the same problem with this url and HttpTst ?

2005-10-19 Thread Francois PIETTE
I get the same result as you. And I found why. And of course I fixed it.
Here is the fix (in red bold):

procedure THttpCli.SendRequest(const Method, Version: String);
...
if (FTargetPort = '80') or (FTargetPort = '') then  
  
Headers.Add('Host: ' + FTargetHost)
else
Headers.Add('Host: ' + FTargetHost + ':' + FTargetPort);

--
[EMAIL PROTECTED]
The author for the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

- Original Message - 
From: Bruno Mannina [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Wednesday, October 19, 2005 3:20 AM
Subject: [twsocket] Do You have the same problem with this url and HttpTst ?


 Hi All,
 
 I want to GET this url http://liinwww.ira.uka.de/bibliography/Ai/agents.html
 but HttpTst program returns me
 Error 400 Bad Request ??!! FireFox or I.E. programs reply me StatusCode =
 200 !!!
 
 Can you try or give me a solution ??
 
 Sincerely,
 Bruno
 
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Do You have the same problem with this url and HttpTst ?

2005-10-19 Thread Francois PIETTE
 I just tested that URL with the HttpTst and it seems to work fine:

Well, not here. The problem was that the host header line was malformed. The 
port is empty but the colon delimiter is there.

Here is the fix (in red bold):

procedure THttpCli.SendRequest(const Method, Version: String);
...
if (FTargetPort = '80') or (FTargetPort = '') then  
  
Headers.Add('Host: ' + FTargetHost)
else
Headers.Add('Host: ' + FTargetHost + ':' + FTargetPort);


Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
The author for the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be



- Original Message - 
From: DZ-Jay [EMAIL PROTECTED]
To: twsocket@elists.org
Sent: Wednesday, October 19, 2005 5:24 PM
Subject: [twsocket] Do You have the same problem with this url and HttpTst ?


 Hello:
 I just tested that URL with the HttpTst and it seems to work fine:
 
 Not using proxy
 cmd GET /bibliography/Ai/agents.html HTTP/1.0
 cmd Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
 cmd Connection: Keep-Alive
 cmd Accept-Language: en, fr
 cmd User-Agent: Mozilla/3.0 (compatible)
 cmd Host: liinwww.ira.uka.de
 cmd
 text/html = agents.html
 Location = http://liinwww.ira.uka.de/bibliography/Ai/agents.html
 URL = http://liinwww.ira.uka.de/bibliography/Ai/agents.html
 Document = agents.html
 RequestDone, no error. Status =200
 StatusCode = 200
 
 
 Can you post the output you are getting from the program?  Also, are 
 you using the latest version of ICS and the HttpTst program? If not, 
 which version are you using?
 
 Thank you,
 dZ.
 
 -- 
 God is real -- except when declared as an integer; and infinite when 
 divided by zero.
 
 DZ-Jay [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 
 
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Do You have the same problem with this url and HttpTst ?

2005-10-19 Thread Bruno Mannina
Hi Francois,

Well, well, well it's Work fine now :) even my program !!!

Thank's a lot 
Bruno
  - Original Message - 
  From: Francois PIETTE 
  To: ICS support mailing 
  Sent: Wednesday, October 19, 2005 8:26 PM
  Subject: Re: [twsocket] Do You have the same problem with this url and 
HttpTst ?


  I get the same result as you. And I found why. And of course I fixed it.
  Here is the fix (in red bold):

  procedure THttpCli.SendRequest(const Method, Version: String);
  ...
  if (FTargetPort = '80') or (FTargetPort = '') then

  Headers.Add('Host: ' + FTargetHost)
  else
  Headers.Add('Host: ' + FTargetHost + ':' + FTargetPort);

  --
  [EMAIL PROTECTED]
  The author for the freeware multi-tier middleware MidWare
  The author of the freeware Internet Component Suite (ICS)
  http://www.overbyte.be

  - Original Message - 
  From: Bruno Mannina [EMAIL PROTECTED]
  To: ICS support mailing twsocket@elists.org
  Sent: Wednesday, October 19, 2005 3:20 AM
  Subject: [twsocket] Do You have the same problem with this url and HttpTst ?


   Hi All,
   
   I want to GET this url http://liinwww.ira.uka.de/bibliography/Ai/agents.html
   but HttpTst program returns me
   Error 400 Bad Request ??!! FireFox or I.E. programs reply me StatusCode =
   200 !!!
   
   Can you try or give me a solution ??
   
   Sincerely,
   Bruno
   
   -- 
   To unsubscribe or change your settings for TWSocket mailing list
   please goto http://www.elists.org/mailman/listinfo/twsocket
   Visit our website at http://www.overbyte.be 
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be