I am failing dismally as I have little knowledge of the HTTP protocol. Has anyone coded access to a site that uses "Basic authentication without secure communication" using the HTTP library on the desktpop?
Hi Erel - Happy Xmas or whatever! I get a 401 exception thrown. No, I'm not using New3 - the Help only shows a New1 and a New2. I had assumed that I would need access to the Request headers to insert an Authorization line but they are read-only!What error do you get?
Are you using WebRequest.New3(...) ?
I googled for the error and I've fixed it now I know about New3. Needs this adding to the dbasic.exe.config (while debugging) and the exe.config of the final app. Can I suggest you do this on the next release!I've seen this error before on one site.
I don't know how to explain it. Other sites (with authentication) work flawlessly.
Merry Christmas and a happy new year!
<system.net> <settings> <httpWebRequest useUnsafeHeaderParsing="true" /> </settings> </system.net
I think that it is better to use the default .Net behavior and let the user override it if required.Setting this property to true has security implications, so it should only be done if backward compatibility with a server is required.