[twsocket] HTTPClient redirection bugs

Yur Ovchinnikov yur@sammit.kiev.ua
Tue, 20 Jun 2000 10:48:56 +0300


Hi!

I use HTTPCli intensive and have a few redirect problems.
All of this may be tested with HttpTst.dpr, including in ICS installations
with fired OnLocationChange event.

My configuration: NT40, cascade proxy server, last version of THTTPCli

1) GET http://alone.sammit.kiev.ua/favicon.ico

! Bug appears only with proxy.

Status Code: 404 Not Found
Reason Phrase: 302 Moved temporarily

>From now i use Reason Phrase for getting Status Code. Ruefully...

2)  Delphi SuperPage

 a) GET http://dsp.href.com/DSP:SEARCH::IntroOk ; take after <form value for
script
 b) POST http://dsp.href.com/iis/iis.dll?DSP:SEARCHDSP:265776007:CKB , data
=
txtSearch=internet&d10=Yes&D20=Yes&D30=Yes&D40=Yes&D50=Yes&WithSource=Yes&Fr
ee=Yes
On this fired redirection on
http://dsp.href.com/iis/iis.dll?DSP:RESULTS:265776007 - and that's all... No
data was receiving - connect still alive and after 30 minuts...
header has:

cmd> POST http://dsp.href.com/iis/iis.dll?DSP:SEARCHDSP:265776007:CKB
HTTP/1.0
cmd> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
cmd> Content-Type: application/x-www-form-urlencoded
cmd> User-Agent: Mozilla/3.0 (compatible)
cmd> Host: dsp.href.com
cmd> Content-Length: 82
cmd>
cmd> POST http://dsp.href.com/iis/iis.dll?DSP:RESULTS:265776007 HTTP/1.0
cmd> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
cmd> Content-Type: application/x-www-form-urlencoded
cmd> User-Agent: Mozilla/3.0 (compatible)
cmd> Host: dsp.href.com
cmd> Content-Length: 82

If simply do POST http://dsp.href.com/iis/iis.dll?DSP:RESULTS:265776007 all
ok.

3) On some servers redirection cycling

best regards
	Yur Ovchinnikov