Hi, I have an client weather application that downloads forecast data from our server, on request, and need to cater for as many client network configurations as possible. The app can successful download using HTTP Proxy, both No Authentication and Basic Authentication however I am having problems with NTLM. To be frank, I'm not sure which THttpCli params/vars I need to set, on the client side, in order to allow the app to connect to the internet and therefore our server. In particular what format the username and password should be passed.
I have included a basic code snippet below. Any help greatly appreciated. if( CommOptionsPtr->UseHTTPProxy ) { if( CommOptionsPtr->HTTPProxyAuth == pxaNone || CommOptionsPtr->HTTPProxyAuth == pxaBasic ) { HttpCli->Proxy = CommOptionsPtr->HTTPProxy; HttpCli->ProxyPort = CommOptionsPtr->HTTPProxyPort; } if( CommOptionsPtr->HTTPProxyAuth == pxaBasic ) { HttpCli->ProxyUsername = CommOptionsPtr->HTTPProxyUser; HttpCli->ProxyPassword = CommOptionsPtr->HTTPProxyPass; } if( CommOptionsPtr->HTTPProxyAuth == pxaNTLM ) //*************what params to set for this condition*************** { HttpCli->ProxyAuth = httpAuthNtlm; HttpCli->Proxy = "*" + CommOptionsPtr->HTTPProxyUser + "*" + CommOptionsPtr->HTTPProxyPass; } } This message (and any associated files) is intended only for the use of the individual or entity to which it is addressed and may contain information that is confidential, subject to copyright or constitutes a trade secret. If you are not the intended recipient you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer. Messages sent to and from us may be monitored. Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Therefore, we do not accept responsibility for any errors or omissions that are present in this message, or any attachment, that have arisen as a result of e-mail transmission. If verification is required, please request a hard-copy version. Any views or opinions presented are solely those of the author and do not necessarily represent those of the company. -- 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