Re: [twsocket] ICS of delphi DX3 can not redirection is disabled

2013-04-26 Thread Angus Robertson - Magenta Systems Ltd
> Where to get the ICS frame browser demo code? thanks.

It is part of the ICS V7 and V8 distributions, in directory:

.\Samples\delphi\BroswerDemo  

It is a full visual browser, using the THtmlViewer component from:

http://code.google.com/p/thtmlviewer/

so displays most web pages, although without any scripting.  It has a
diagnostic window that displays both headers and data downloaded, which
can be very useful to see how a web page is built.  

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] ICS of delphi DX3 can not redirection is disabled

2013-04-25 Thread xlq
Sorry, I wrote some wrong codes in OnMyDocData, now it work fine.



On Fri, Apr 26, 2013 at 8:34 AM, xlq  wrote:

> I created dynamically a HTTPCli and use it to get the URL:
>
> mHttpCli:= THttpcli.Create(nil);
> mHttpCli.OnCommand  := OnMyCommand;
> mHttpCli.OnHeaderData   := OnMyHeaderData;
> mHttpCli.OnDocData:= OnMyDocData;
> mHttpCli.MultiThreaded  := true;
> mHttpCli.URL:= '
> http://media.soundcloud.com/stream/EvkwidLYJX0C?stream_token=UUQGe';
> mHttpCli.RcvdStream := TFileStream.Create('c:\tmp\1', fmCreate);
>
> mHttpCli.Get;
> ..
>
> It can not redirect automtically in delphi XE3, but it work fine in
> delphi 7
>
> Where to get the ICS frame browser demo code? thanks.
>
>
>
>
> On Thu, Apr 25, 2013 at 5:23 PM, Angus Robertson - Magenta Systems Ltd <
> an...@magsys.co.uk> wrote:
>
>> > Now I use HTTPCli version is Version: 8.00 in Delphi XE3, and the
>> > link no longer redirect
>>
>> Using the ICS frame browser demo, redirection works fine here, although
>> nothing useful is displayed since it's an audio clip, some headers
>> removed to keep this shorter:
>>
>> FrameBrowser Get:
>> http://media.soundcloud.com/stream/EvkwidLYJX0C?stream_token=UUQGe
>> [0] > GET /stream/EvkwidLYJX0C?stream_token=UUQGe HTTP/1.1
>> [0] < HTTP/1.1 302 Moved Temporarily
>> [0] < Location:
>> http://ec-media.soundcloud.com/EvkwidLYJX0C.128.mp3?ff61182e3c2ecefa438cd0
>> 2102d0e385713f0c1faf3b0339595665fc070deb1153437a8cc50fcf5df5446cc7a6d80703
>> e31311b9e16c48bdc354806dd5d714b613abe12468&AWSAccessKeyId=AKIAJ4IAZE5EOI7P
>> A7VQ&Expires=1366880598&Signature=1K94rAZVg0SkRaxlFjWltf%2FeVLs%3D
>> [0] StateChange: httpBodyReceived
>> [0] Connected to ec-media.soundcloud.com
>> [0] > GET
>> /EvkwidLYJX0C.128.mp3?ff61182e3c2ecefa438cd02102d0e385713f0c1faf3b03395956
>> 65fc070deb1153437a8cc50fcf5df5446cc7a6d80703e31311b9e16c48bdc354806dd5d714
>> b613abe12468&AWSAccessKeyId=AKIAJ4IAZE5EOI7PA7VQ&Expires=1366880598&Signat
>> ure=1K94rAZVg0SkRaxlFjWltf%2FeVLs%3D HTTP/1.1
>> [0] > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
>> [0] < HTTP/1.1 200 OK
>> [0] < Content-Type: audio/mpeg
>> [0] < Date: Thu, 25 Apr 2013 09:02:58 GMT
>> [0] < Content-Length: 382013
>> FrameBrowserGetPostRequestEx Done: Status 200
>> [0] Disconnected
>>
>> Angus
>>
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>>
>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] ICS of delphi DX3 can not redirection is disabled

2013-04-25 Thread xlq
I created dynamically a HTTPCli and use it to get the URL:

mHttpCli:= THttpcli.Create(nil);
mHttpCli.OnCommand  := OnMyCommand;
mHttpCli.OnHeaderData   := OnMyHeaderData;
mHttpCli.OnDocData:= OnMyDocData;
mHttpCli.MultiThreaded  := true;
mHttpCli.URL:= '
http://media.soundcloud.com/stream/EvkwidLYJX0C?stream_token=UUQGe';
mHttpCli.RcvdStream := TFileStream.Create('c:\tmp\1', fmCreate);

mHttpCli.Get;
..

It can not redirect automtically in delphi XE3, but it work fine in delphi 7

Where to get the ICS frame browser demo code? thanks.




On Thu, Apr 25, 2013 at 5:23 PM, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > Now I use HTTPCli version is Version: 8.00 in Delphi XE3, and the
> > link no longer redirect
>
> Using the ICS frame browser demo, redirection works fine here, although
> nothing useful is displayed since it's an audio clip, some headers
> removed to keep this shorter:
>
> FrameBrowser Get:
> http://media.soundcloud.com/stream/EvkwidLYJX0C?stream_token=UUQGe
> [0] > GET /stream/EvkwidLYJX0C?stream_token=UUQGe HTTP/1.1
> [0] < HTTP/1.1 302 Moved Temporarily
> [0] < Location:
> http://ec-media.soundcloud.com/EvkwidLYJX0C.128.mp3?ff61182e3c2ecefa438cd0
> 2102d0e385713f0c1faf3b0339595665fc070deb1153437a8cc50fcf5df5446cc7a6d80703
> e31311b9e16c48bdc354806dd5d714b613abe12468&AWSAccessKeyId=AKIAJ4IAZE5EOI7P
> A7VQ&Expires=1366880598&Signature=1K94rAZVg0SkRaxlFjWltf%2FeVLs%3D
> [0] StateChange: httpBodyReceived
> [0] Connected to ec-media.soundcloud.com
> [0] > GET
> /EvkwidLYJX0C.128.mp3?ff61182e3c2ecefa438cd02102d0e385713f0c1faf3b03395956
> 65fc070deb1153437a8cc50fcf5df5446cc7a6d80703e31311b9e16c48bdc354806dd5d714
> b613abe12468&AWSAccessKeyId=AKIAJ4IAZE5EOI7PA7VQ&Expires=1366880598&Signat
> ure=1K94rAZVg0SkRaxlFjWltf%2FeVLs%3D HTTP/1.1
> [0] > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
> [0] < HTTP/1.1 200 OK
> [0] < Content-Type: audio/mpeg
> [0] < Date: Thu, 25 Apr 2013 09:02:58 GMT
> [0] < Content-Length: 382013
> FrameBrowserGetPostRequestEx Done: Status 200
> [0] Disconnected
>
> Angus
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] ICS of delphi DX3 can not redirection is disabled

2013-04-25 Thread Angus Robertson - Magenta Systems Ltd
> Now I use HTTPCli version is Version: 8.00 in Delphi XE3, and the
> link no longer redirect

Using the ICS frame browser demo, redirection works fine here, although
nothing useful is displayed since it's an audio clip, some headers
removed to keep this shorter:

FrameBrowser Get:
http://media.soundcloud.com/stream/EvkwidLYJX0C?stream_token=UUQGe
[0] > GET /stream/EvkwidLYJX0C?stream_token=UUQGe HTTP/1.1
[0] < HTTP/1.1 302 Moved Temporarily
[0] < Location:
http://ec-media.soundcloud.com/EvkwidLYJX0C.128.mp3?ff61182e3c2ecefa438cd0
2102d0e385713f0c1faf3b0339595665fc070deb1153437a8cc50fcf5df5446cc7a6d80703
e31311b9e16c48bdc354806dd5d714b613abe12468&AWSAccessKeyId=AKIAJ4IAZE5EOI7P
A7VQ&Expires=1366880598&Signature=1K94rAZVg0SkRaxlFjWltf%2FeVLs%3D
[0] StateChange: httpBodyReceived
[0] Connected to ec-media.soundcloud.com
[0] > GET
/EvkwidLYJX0C.128.mp3?ff61182e3c2ecefa438cd02102d0e385713f0c1faf3b03395956
65fc070deb1153437a8cc50fcf5df5446cc7a6d80703e31311b9e16c48bdc354806dd5d714
b613abe12468&AWSAccessKeyId=AKIAJ4IAZE5EOI7PA7VQ&Expires=1366880598&Signat
ure=1K94rAZVg0SkRaxlFjWltf%2FeVLs%3D HTTP/1.1
[0] > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
[0] < HTTP/1.1 200 OK
[0] < Content-Type: audio/mpeg
[0] < Date: Thu, 25 Apr 2013 09:02:58 GMT
[0] < Content-Length: 382013
FrameBrowserGetPostRequestEx Done: Status 200
[0] Disconnected

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] ICS of delphi DX3 can not redirection is disabled

2013-04-25 Thread xlq
The old HTTPCli is Version: 1.47 , it work fine in delphi 7

Now I use HTTPCli version is Version: 8.00 in Delphi XE3, and the link no
longer redirect is:
http://media.soundcloud.com/stream/EvkwidLYJX0C?stream_token=UUQGe








On Thu, Apr 25, 2013 at 2:49 PM, Angus Robertson - Magenta Systems Ltd <
an...@magsys.co.uk> wrote:

> > I used HTTPCli of ICS in delphi 7, HTTPCli can handle redirection
> > automatically,
> > now I move my code to delphi XE3 and use the latest ICS, but
> > HTTPCli can
> > not handle redirection automatically, Is it a bug? or What am I
> > missing?
>
> The 'latest' ICS still handles redirection automatically.
>
> If you want to report a bug, you will need to be specific about what
> internal versions of HTTPCli worked before, and not now, and which URLs
> no longer redirect.
>
> Angus
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] ICS of delphi DX3 can not redirection is disabled

2013-04-24 Thread Angus Robertson - Magenta Systems Ltd
> I used HTTPCli of ICS in delphi 7, HTTPCli can handle redirection
> automatically,
> now I move my code to delphi XE3 and use the latest ICS, but 
> HTTPCli can
> not handle redirection automatically, Is it a bug? or What am I 
> missing?

The 'latest' ICS still handles redirection automatically. 

If you want to report a bug, you will need to be specific about what
internal versions of HTTPCli worked before, and not now, and which URLs
no longer redirect. 

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be