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 http://www.expertsoftware.be
> -----Oorspronkelijk bericht----- > Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] > Namens Angus Robertson - Magenta Systems Ltd > Verzonden: zondag 18 september 2011 15:10 > Aan: twsocket@elists.org > Onderwerp: Re: [twsocket] HTTP 401 missing header line > > > 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 know that > authentication is needed and send the Authorization: command with the > request? > > > <Request>/sms/smsmessaging/outbound/tel:+32473042292/requests</Reque > > I'm just writing a Delphi component to send SMS messages via HTTP and a > GSM modem, with a queue in case there are delivery problems. > > The two UK providers I'm initially supporting (Kapow and TextMagic) > both > pass authentication as arguments in the GET or POST strings, rather > than > using the Authorization: command. If you have a test account and > documentation for your provider, adding a third provider will be easy. > > 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