Skip to main content

Home/ Coders/ Group items tagged Cookie

Rss Feed Group items tagged

Joel Bennett

Deriving from WebClient to handle persisting cookies for login - 0 views

  • Then just use the ExWebClient class to make your requests;
  • Public Class CookieWebClient : Inherits WebClient ' overridden to add cookie headers to http requests. Protected Overrides Function GetWebRequest(ByVal address As System.Uri) As System.Net.WebRequest Dim request As WebRequest = MyBase.GetWebRequest(address) If TypeOf request Is HttpWebRequest Then DirectCast(request, HttpWebRequest).CookieContainer = _cookies End If Return request End Function ' overridden to save cookies to the container for http requests. Protected Overrides Function GetWebResponse(ByVal request As System.Net.WebRequest) As System.Net.WebResponse Dim response As WebResponse = MyBase.GetWebResponse(request) If TypeOf response Is HttpWebResponse Then _cookies.Add(response.ResponseUri, DirectCast(response, HttpWebResponse).Cookies) End If Return response End Function ' overridden to save cookies to the container for async http requests. Protected Overrides Function GetWebResponse(ByVal request As System.Net.WebRequest, ByVal result As System.IAsyncResult) As System.Net.WebResponse Dim response As WebResponse = MyBase.GetWebResponse(request, result) If TypeOf response Is HttpWebResponse Then _cookies.Add(response.ResponseUri, DirectCast(response, HttpWebResponse).Cookies) End If Return response End Function Private Shared _cookies As CookieContainer = New CookieContainer End Class
alex gross

Univar - Session, cookie, query string & cache variables unified - 5 views

  •  
    s a web developer I have often had to work with the session, cookie, query string and cache to persist data locally. But it is a shame that there is no neat way of doing so. So I decided to write my own code to provide a simpler and unified model to work with and finally came up with this, a type safe and generic wrapper that supports complex data types
Joel Bennett

Weave - Mozilla Labs - 0 views

  • Ensure that it is easy for people to set up their own services with freely available open standards-based tools
  •  
    The next release of Weave (any day now) is expected to include P2P sharing of bookmark folders via XMPP, on top of the ability to synchronize your bookmarks, browsing history, and even your cookies, passwords, and form data...
David Corking

fbcdn.net i.e. facebook - On the internet - 0 views

  • By having a domain that isn't just a subdomain (ie, x.facebook.com) like fbcdn.net, each request isn't burdened with the additional cookies and thus minimizes the bandwidth required on the request
  •  
    So what is the best way to set up NoScript to avoid XSS attacks from Facebook users?
timothypeverhart

Google Chrome for PC Latest Version - 0 views

image

Google Chrome

started by timothypeverhart on 24 Jul 23 no follow-up yet
1 - 12 of 12
Showing 20 items per page