Re: [twsocket] TSslHTTPCli and Sessions

2017-06-03 Thread {Dark_Ducke}
thanks 2017-05-31 10:23 GMT-03:00 Angus Robertson - Magenta Systems Ltd < an...@magsys.co.uk>: > > I need to make connections every 1 second, Data, and of that > > received data make another connection depending on the content, > > my question is, how to wait the data of the first connection

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-31 Thread Angus Robertson - Magenta Systems Ltd
> I need to make connections every 1 second, Data, and of that > received data make another connection depending on the content, > my question is, how to wait the data of the first connection and > only then make the second, third etc In the timer, you simply check State <> httpReady and give up

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-31 Thread {Dark_Ducke}
Hello, thank you very much for the help, I was able to use the component, the problem was in the files generated locally, I reused them, now I will put my project into practice, but I have a question, I need to make connections every 1 second, Data, and of that received data make another

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-28 Thread Angus Robertson - Magenta Systems Ltd
> Can inform me the name of the demo project that use cookies, I > did not find, thank you! Sorry, bad memory, I did a MimeDemo, but not a Cookie demo. The main test project for cookies was the browser demo, FrameBrowserIcs.dpr and specifically FBUnitIcs.pas. And it seems they should be

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-28 Thread {Dark_Ducke}
I looked at all the folder demos I found an example with cookies, but it is not with ssl component, I tried to do everything, clear the cookies, send empty cookie, nothing else resolves, every time I send the POST it's like the first user: Buf :=

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-28 Thread Angus Robertson - Magenta Systems Ltd
> Thanks, it worked perfectly, I managed to navigate the other > pages, but now another problem has appeared, I changed the user > and logged in again, and all the pages that I navigate are with > the data of the first user, even sending a post with incorrect > login and password He logs in as if

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-28 Thread Angus Robertson - Magenta Systems Ltd
> One detail I forgot to mention, in the first example you gave me, > I also had to add the line " SslHttpCli.Cookie := > IcsCookies.GetCookies(SslHttpCli.URL);" in the event > "OnLocationChange" is this correct? Should not be necessary, and a response with a Location: header should not set

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-27 Thread {Dark_Ducke}
One detail I forgot to mention, in the first example you gave me, I also had to add the line " SslHttpCli.Cookie := IcsCookies.GetCookies(SslHttpCli.URL);" in the event "OnLocationChange" is this correct? 2017-05-27 17:03 GMT-03:00 {Dark_Ducke} : > Thanks, it worked

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-27 Thread {Dark_Ducke}
Thanks, it worked perfectly, I managed to navigate the other pages, but now another problem has appeared, I changed the user and logged in again, and all the pages that I navigate are with the data of the first user, even sending a post with incorrect login and password He logs in as if he was the

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-25 Thread Angus Robertson - Magenta Systems Ltd
> I get the login data for the login page using "POST" and > "PostASync", but when doing a GET on the next page that > should be accessed with the logged in user Almost certainly cookies, these are not handled internally between requests, you need to repeat your line: HttpCli1.Cookie :=