[twsocket] HTTP 401 missing header line

2011-09-18 Thread Wilfried Mestdagh
Hello, I'm trying to POST to a server that needs authentication. I expect a 401 from the server with in the header something like: WWW-Authenticate: Basic Realm=/something But it is not in the response. Also what does the 'connection: close' mean? I think the THttpCli does not send an

Re: [twsocket] HTTP 401 missing header line

2011-09-18 Thread Angus Robertson - Magenta Systems Ltd
I'm trying to POST to a server that needs authentication. I expect a 401 from the server with in the header something like: WWW-Authenticate: Basic Realm=/something This is a pure guess, but maybe the WWW-Authenticate header is only returned for GET requests, with POST you are supposed to

Re: [twsocket] HTTP 401 missing header line

2011-09-18 Thread Wilfried Mestdagh
Hi Angus, Yes indeed, I found out already. The authentication is an argument in the POST command. When it is invalid or missing the server returns a 401 with the missing header line. Is that a bug in the server? -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be

Re: [twsocket] HTTP 401 missing header line

2011-09-18 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: The authentication is an argument in the POST command. When it is invalid or missing the server returns a 401 with the missing header line. Is that a bug in the server? The two SMS providers I'm testing provide a range of error messages including