Re: [twsocket] HTTP protocol issue

2010-05-23 Thread Fastream Technologies
Hi again, I think I found a solution: when GZip is in place, I remove the content-range response header line and just use content-length and content-encoding. Seems to work... Regards, SZ On Sun, May 23, 2010 at 4:27 PM, Fastream Technologies wrote: > Oops, I mixed the "Content-range" response

Re: [twsocket] HTTP protocol issue

2010-05-23 Thread Fastream Technologies
Oops, I mixed the "Content-range" response header with "Range" request header. Other than that the issue still remains. On Sun, May 23, 2010 at 4:24 PM, Fastream Technologies wrote: > Hello, > > I have a question: Let's say the request has Content-Range: 50-100 for a > file of length = 100. Now w

[twsocket] HTTP protocol issue

2010-05-23 Thread Fastream Technologies
Hello, I have a question: Let's say the request has Content-Range: 50-100 for a file of length = 100. Now we want to return the Range: 50-100/100 as GZipped. the last 50 bytes of the file is compressed to 40 bytes. How should one construct the response header? Range? Content-length? Regards, SZ

Re: [twsocket] Wiki (was BTW: Support for OpenSSL0.9.8nisavailable(ICS v7))

2010-05-23 Thread Zvonko Tesic
Hi François, I was the one asking for access to wiki documentation writing access. My username to the wiki is "Phz". Actually my question for writing documentation was in a block of text it was not a specific standalone question - perhaps I could have written it like that. Anyway, I would st

Re: [twsocket] Strange ICS proxy server in service app problem

2010-05-23 Thread Fastream Technologies
Hi and welcome back Francois. On Sun, May 23, 2010 at 12:12 PM, Francois PIETTE wrote: > Not sure how the debug GUI exe works but I found a solution for the >> service: >> >> In ...WndControl.pas, >> >> const >> TIcsWndControlVersion = 110; >> CopyRight : String = ' TIcsWndControl (c) 200

Re: [twsocket] HTTP Location

2010-05-23 Thread Angus Robertson - Magenta Systems Ltd
> Since you rae writing a page check software, it is probably ggod > enough to not handle the cookies and to refuse relocation if the > url is the same url. That did occur to me, unfortunately the LocationChange event does not have the AllowMoreRelocations parameter that the LocationChangeExcee

Re: [twsocket] Strange ICS proxy server in service app problem

2010-05-23 Thread Francois PIETTE
Not sure how the debug GUI exe works but I found a solution for the service: In ...WndControl.pas, const TIcsWndControlVersion = 110; CopyRight : String = ' TIcsWndControl (c) 2002-2008 F. Piette V1.10 '; WH_MAX_MSG = 400; <== MODIFIED THIS from 100 so that it woul

Re: [twsocket] HTTP Location

2010-05-23 Thread Francois PIETTE
Is it valid for an HHTP header to relocate to an empty URL? Currently, HttpProt seems to parse the relocation to the same URL, and goes into a loop. < HTTP/1.1 302 Found < Location: http:// Probably the loop is broken by the server side once you handle cookies. The first request produce a rel

Re: [twsocket] Winsock 1.1 and IPv6

2010-05-23 Thread Francois PIETTE
But there's another problem with WSocket_WSAAsyncGetHostByName. AKAIK, this old API doesn't support IPv6. New API GetAddrInfo() handles both IPv4 and IPv6 but it is blocking. Should I try to emulate asynchron lookups using a thread? Ideas are welcome. Having async operation is really mandatory.

Re: [twsocket] Winsock 1.1 and IPv6

2010-05-23 Thread Francois PIETTE
I'm going to look at how to implement IPv6 in ICS and wonder if support for winsock below v2.2 was actually required in ICS v7? No, I don't believe ICS v6 and v7 need to support any OSs earlier than Windows 2000, since they are long out of support and there is no need for them to support new app

Re: [twsocket] Winsock 1.1 and IPv6

2010-05-23 Thread Francois PIETTE
I'm going to look at how to implement IPv6 in ICS and wonder if support for winsock below v2.2 was actually required in ICS v7? No, I don't believe ICS v6 and v7 need to support any OSs earlier than Windows 2000, since they are long out of support and there is no need for them to support new a

Re: [twsocket] Winsock 1.1 and IPv6

2010-05-23 Thread Francois PIETTE
if support for winsock below v2.2 was actually required in ICS v7? As Wiki says, Version 2.1 of Winsock was supplied in an add-on package for Windows 95. It was an integral component of Windows 98, Windows NT 4.0, and all subsequent Windows releases. (Microsoft did not supply implementations o

Re: [twsocket] FTPCli error handling

2010-05-23 Thread Francois PIETTE
AS>> > Current manner of reporting local errors is to set code 550 with an explaining message AS>>> and call TriggerRequestDone. But I find it very confusing: for example, when trying to AS>>> GET some file or directory listing we could receive "true FTP response" 550 if the AS>>> requested fi

Re: [twsocket] BTW: Support for OpenSSL 0.9.8n is available (ICS v7)

2010-05-23 Thread Francois PIETTE
As I use components I will update wiki (and not for altruistic reasons - for myself so I have it in one place :) and provide examples in c++ (someone may later rewrite them in delphi, I don't care about it). That's perfect for me. Let me know you login name and I'll grant you access. Any info

Re: [twsocket] Wiki (was BTW: Support for OpenSSL 0.9.8nisavailable(ICS v7))

2010-05-23 Thread Francois PIETTE
- I already wrote to Francois and got no reply (I know I can remind him again, but how encouraging is that?) That's very strange, your mail must got lost, since wiki-writers are always very welcome. Sorry for late reply. I'm just back from a few vacation days hiking in the mountains without

Re: [twsocket] Wiki (was BTW: Support for OpenSSL 0.9.8n is available(ICS v7))

2010-05-23 Thread Francois PIETTE
Sorry for late reply. I'm just back from a few vacation days hiking in the mountains without internet access. By the way, can anyone approve me so I can write documentation on wiki? I'm really tired of looking for documentation on like... 20 different places and many things are undocumented. Ev