Re: [twsocket] Basic HTTP Authentication over SSL

2014-02-24 Thread Wayne Phipps
Just to bring things up to date, the suggestion by Anro almost worked. I was able to trace through the unit and found the part which actually sent the Header and watched it go line by line along with the basic auth. From there I realised that there was something wrong with the values and simply

Re: [twsocket] Basic HTTP Authentication over SSL

2014-02-18 Thread Wayne Phipps
I thought I'd just clarify we're actually using v7.23 The result returned is: StatusCode= 401 {responseCode:401,responseMessage:Unauthorized} Any suggestions welcome. On 18 February 2014 13:01, Wayne Phipps waynephi...@gmail.com wrote: We are trying to integrate to a HTTP JSON API using

Re: [twsocket] Basic HTTP Authentication over SSL

2014-02-18 Thread Angus Robertson - Magenta Systems Ltd
The process should be as follows: 1) Use HTTP POST to pass username and password parameters to login URL 2) A token string is returned if login was successful 3) The token is then used as Basic Authentication using HTTP GET to retrieve JSON from different API URL Step 1 and 2 are

Re: [twsocket] Basic HTTP Authentication over SSL

2014-02-18 Thread Arno Garrels
On Tuesday, February 18, 2014 2:01 PM [GMT+1=CET], Wayne Phipps wrote: Now we've come to implement the interface in Delphi, we've hit a hurdle. The process should be as follows: 1) Use HTTP POST to pass username and password parameters to login URL 2) A token string is

Re: [twsocket] Basic HTTP Authentication over SSL

2014-02-18 Thread Wayne Phipps
Not yet, I didn't spot that function but that sounds like a good plan. Thanks Arno, I'll give that a go. Kind Regards, Wayne On 18 Feb 2014 18:26, Arno Garrels arno.garr...@gmx.de wrote: On Tuesday, February 18, 2014 2:01 PM [GMT+1=CET], Wayne Phipps wrote: Now we've come to implement the

Re: [twsocket] Basic HTTP Authentication over SSL

2014-02-18 Thread Wayne Phipps
OK, I've tried that now but it's unfortunately made no difference. Just for info, I've set two breakpoints. One on the function THttpCli.PrepareBasicAuth and the second on the procedure THttpCli.StartAuthBasic which I rightly or wrongly expected to be called. The breakpoint at StartBasicAuth