SOAP message - Add authentication in http header
问题 I have to send a SOAP message to a WebService that needs basic authentication in the http request, but I can't find a way to do it. After searching I found some solutions and workarounds, but none of them worked. Here's my code: procedure TMyForm.HTTPRIOHTTPWebNode1BeforePost( const HTTPReqResp: THTTPReqResp; Data: Pointer); var UserName: string; PassWord: string; begin UserName := 'aaa'; Password := 'bbb'; if not InternetSetOption(Data, INTERNET_OPTION_USERNAME, PChar(UserName), Length