[twsocket] HTTP client relocation

2005-11-17 Thread Francois PIETTE
When using the url http://mediaphor.louis.info/de/;, the HTTP client component hit a 404 error after a relocation. The problem is that the relocation is done to ../ so the component send the request GET /de/../ and the server doesn't like it. In my opinion, it is a problem at server side. The

Re: [twsocket] HTTP client relocation

2005-11-17 Thread Angus Robertson - Magenta Systems Ltd
The question is: Should the HTTP client component implement this relative path removal algorithm ? In my opinion it should. I've not reported it before, and I've lost my fix due to installing new ICS versions over the last month. But there is another problem in relocation when the

[twsocket] TWsocket/TWsocketServer sending/receiving Files

2005-11-17 Thread Selahattin Erkoc
hi, I have used both compenets to send/receive text but now I'm trying to use it for sending files.. so I tried just simple to open the file binary, read it and send it to the Server TCommand = record ID : Integer; end; TFileBuf = record ID : Integer; bufSize : Integer; buf:

Re: [twsocket] TWsocket/TWsocketServer sending/receiving Files

2005-11-17 Thread Wilfried Mestdagh
Hello Sela, - Are you taken into account that nRead also can be 0 or -1 ? - You create a TStream in every OnDataAvailable. I think you need the TStream to put the file in right ? Then only create it one time. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html