Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 17:09

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How Shit i Remove Cookies From My HttpWebRequest

Discussion on How Shit i Remove Cookies From My HttpWebRequest within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
Eslam Galull's Avatar
 
elite*gold: 85
Join Date: Aug 2010
Posts: 1,278
Received Thanks: 524
How **** i Remove Cookies From My HttpWebRequest

im trying To Delete The Cookie Which i Send To ImVu Website

I Cant Do it .. i used alot of codes i Get Bored !!

Website Work By Cookie to track You ..

i wanna Set Expire Data ( Nw ) Or Value or something Make Cookie Cant Trace Me .. Every Connection

Here is My Code



PHP Code:
 Dim postData As String "POSTDATA=sauce=&avatarname=" TargetAvatar "&" "password=" thPw "&password_strength=strong&sendto="
        
Dim tempCookies As New CookieContainer

        Dim encoding 
As New UTF8Encoding
        Dim byteData 
As Byte() = encoding.GetBytes(postData)


        
Dim postReq As HttpWebRequest DirectCast(WebRequest.Create(MainLoginPage), HttpWebRequest)
        
postReq.Method "POST"
        
postReq.KeepAlive True
        postReq
.CookieContainer tempCookies
        postReq
.ContentType "application/x-www-form-urlencoded"
        
postReq.Referer ReferPage
        postReq
.UserAgent TextBox1.Text

        
'postReq.KeepAlive = True
        ' 
postReq.AllowAutoRedirect True


        postReq
.ContentLength byteData.Length
        Dim postreqstream 
As Stream postReq.GetRequestStream()
        
postreqstream.Write(byteData0byteData.Length)
        
postreqstream.Close()


        
Dim postresponse As HttpWebResponse
        postresponse 
DirectCast(postReq.GetResponse(), HttpWebResponse)
        
tempCookies.Add(postresponse.Cookies)
        
logincookie tempCookies
        
'  postresponse.Close()

        Dim postreqreader As New StreamReader(postresponse.GetResponseStream())
        Dim thepage As String = postreqreader.ReadToEnd
        ' 
postreqreader.Close() 
Eslam Galull is offline  
Old 06/21/2014, 01:04   #2
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
use a new cookiecontainer and the cookie is gone
tolio is offline  
Old 06/21/2014, 17:23   #3
 
Eslam Galull's Avatar
 
elite*gold: 85
Join Date: Aug 2010
Posts: 1,278
Received Thanks: 524
can you explain More ?! i Already Doing what you say

Here is my Full Code


PHP Code:
 Dim worker As System.ComponentModel.BackgroundWorker CType(senderSystem.ComponentModel.BackgroundWorker)
        
Dim postData As String "POSTDATA=sauce=&avatarname=" TargetAvatar "&" "password=" thPw "&password_strength=strong&sendto="
        
Dim tempCookies As New CookieContainer
        Dim logincookie 
As CookieContainer
        Dim encoding 
As New UTF8Encoding
        Dim byteData 
As Byte() = encoding.GetBytes(postData)


        
Dim postReq As HttpWebRequest DirectCast(WebRequest.Create(MainLoginPage), HttpWebRequest)
        
postReq.Method "POST"
        
postReq.KeepAlive True
        postReq
.CookieContainer tempCookies
        postReq
.ContentType "application/x-www-form-urlencoded"
        
postReq.Referer ReferPage
        postReq
.UserAgent "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1"

        'postReq.KeepAlive = True
        ' 
postReq.AllowAutoRedirect True

        postReq
.ContentLength byteData.Length
        Dim postreqstream 
As Stream postReq.GetRequestStream()
        
postreqstream.Write(byteData0byteData.Length)
        
postreqstream.Close()

        
Dim postresponse As HttpWebResponse
        postresponse 
DirectCast(postReq.GetResponse(), HttpWebResponse)
        
tempCookies.Add(postresponse.Cookies)
        
logincookie tempCookies
        
'  postresponse.Close()


        Dim postreqreader As New StreamReader(postresponse.GetResponseStream())
        Dim thepage As String = postreqreader.ReadToEnd
        ' 
postreqreader.Close() 
Eslam Galull is offline  
Old 06/27/2014, 23:14   #4

 
PC Jones's Avatar
 
elite*gold: 150
The Black Market: 271/0/0
Join Date: Oct 2009
Posts: 7,098
Received Thanks: 623
Quote:
Originally Posted by its.soul View Post
can you explain More ?! i Already Doing what you say

Here is my Full Code


PHP Code:
 Dim worker As System.ComponentModel.BackgroundWorker CType(senderSystem.ComponentModel.BackgroundWorker)
        
Dim postData As String "POSTDATA=sauce=&avatarname=" TargetAvatar "&" "password=" thPw "&password_strength=strong&sendto="
        
Dim tempCookies As New CookieContainer
        Dim logincookie 
As CookieContainer
        Dim encoding 
As New UTF8Encoding
        Dim byteData 
As Byte() = encoding.GetBytes(postData)


        
Dim postReq As HttpWebRequest DirectCast(WebRequest.Create(MainLoginPage), HttpWebRequest)
        
postReq.Method "POST"
        
postReq.KeepAlive True
        postReq
.CookieContainer tempCookies
        postReq
.ContentType "application/x-www-form-urlencoded"
        
postReq.Referer ReferPage
        postReq
.UserAgent "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1"

        'postReq.KeepAlive = True
        ' 
postReq.AllowAutoRedirect True

        postReq
.ContentLength byteData.Length
        Dim postreqstream 
As Stream postReq.GetRequestStream()
        
postreqstream.Write(byteData0byteData.Length)
        
postreqstream.Close()

        
Dim postresponse As HttpWebResponse
        postresponse 
DirectCast(postReq.GetResponse(), HttpWebResponse)
        
tempCookies.Add(postresponse.Cookies)
        
logincookie tempCookies
        
'  postresponse.Close()


        Dim postreqreader As New StreamReader(postresponse.GetResponseStream())
        Dim thepage As String = postreqreader.ReadToEnd
        ' 
postreqreader.Close() 
Just:
tempCookies = new CookieContainer()
loginCookies = new CookieContainer()
PC Jones is offline  
Reply


Similar Threads Similar Threads
[VB] HttpWebRequest: Problem mit der Übergabe von Cookies
04/07/2014 - .NET Languages - 3 Replies
kann geclosed werden, gelöst.
[Request Help] Remove mobs / remove eur items / remove npc
02/15/2013 - SRO Private Server - 0 Replies
Iam sure all now saies this guy is mad :D why not remove the db i want to know how i can remove mobs from samrkand and add alex mobs there and remove eur item from npc and drobs and remove some npcs ty guys _________________________ I see that there is too much help here it's my topic no.2 without any answer
how to remove this shit
05/31/2009 - CO2 Private Server - 3 Replies
Hey anyone know how to remove piglets in Tc?



All times are GMT +1. The time now is 17:10.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.