↧
From: | jroehl |
To: | Rick Strahl |
o.nserviceflags which is numeric.
And what number would INTERNET_FLAG_NO_COOKIES evaluate to?
Yes by default, HttpGet() retrieves cookie informaton and stores it in the standards Windows cookie store. It behaves in the same way as a browser in that it gets the cookie and expires it based on the cookie policy. Same store that Internet Explorer uses.
You can turn automatic cookie handling off, but this might actually make your application fail. Many sites that use cookies use them to keep track of users for subsequent requests or logins. If you are hitting more than a single link most likely you need the cookies.
You can turn cookies off with:
loHttp.nHttpServiceFlags = loHttp.nHttpServiceFlags + INTERNET_FLAG_NO_COOKIES
+++ Rick ---
If so, can the website read the cookie?
If so, where is the cookie?
Is there anyway of preventing cookies?
Thanks
Jeff
No, but wwHttp only retrieves the content - it doesn't run it, so it's not the job of the HTTP client to clean up your HTML.
If you're going to display HTML retrieved, you'll have to strip out script and a host of other things to sanitize the code - it's not a trivial job BTW, even though at first it might seem so because there are lots of potential attack vectors.
+++ Rick ---
To tell the website I am getting that my browser has javascript disabled?
Thanks
Jeff