HttpWebRequest and cookies 09-21-2013, 09:09 AM
#1
Hello,
I have a problem getting the cookies from a users Browser (Firefox, Chrome, Opera,...).
I wanted to make a Facebook bot, but i dont know how to finde the cookies to load in the HttpWebRequest.
My "source":
Thank you ! :epic:
I have a problem getting the cookies from a users Browser (Firefox, Chrome, Opera,...).
I wanted to make a Facebook bot, but i dont know how to finde the cookies to load in the HttpWebRequest.
My "source":
Code:
Dim cookies As New CookieContainer
For whatever In Idontknow
If whatever.domain.contains("facebook") Then
Dim cookie As New Cookie
cookie.Name = whatever.Name
cookie.Domain = whatever.domain
cookies.Add(cookie)
End If
Next
Dim Request As HttpWebRequest = CType(WebRequest.Create("yourpage"), HttpWebRequest)
Request.CookieContainer = cookies
'Do somethingThank you ! :epic:


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)
![[Image: 2xgfjby9.png]](http://s1.directupload.net/images/131103/2xgfjby9.png)