Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
- First,I apologize, but I am new to this cookie business.
I have a winform application,and I can not read the cookies inside a htm page, with it. I need SPECIAL METHODS that can be found ONLY in ASP.NET(I find all the tutorials for ASP and not for WinForm app).
So... if cookie block found inside htm page; copy string + manipulate /or/ send my stored information to it.

1- My problem is that I dont KNOW the form of a cookie. What should I look for? What is its coding look like?
2- Also, the location - where I can find the root/address of a cookie? (from htm page)

This is the website I wish to read cookies from: www.deviantart.com[^]

And I mean, NOT using methods, but the naked htm code (+explanations if you desire).
I already discussed the Methods problem in other post, and reach no conclusion.
Here is the post: Request.Cookies and Response.Cookies[^]
Thank you.
Posted
Comments
ZurdoDev 1-Apr-15 15:34pm    
Cookies are not in the HTML, they are in the full Response so I'm not sure you could get at them from a different way.
_Q12_ 1-Apr-15 15:40pm    
ok, Response then, How do I call them? there should be a link or a mention about this cookie in the html page. How the browser read it ? How can I read it, in the most direct way (old school mode)?
ZurdoDev 1-Apr-15 15:42pm    
Possibly use a WebBrowser control or implement the WebClient class in your app (I'm pretty sure you can still do that in WinForms).
_Q12_ 1-Apr-15 17:04pm    
Can you give me the cookie methods that came with WebBrowser control?
_Q12_ 1-Apr-15 15:49pm    
It is so hard to give me the core of a cookie implementation? Really?
I read something about webclient, but it's not having access to the cookie from a html page. I am using webclient to access a modern page (some pages are not readable and throw errors, but with webclient is working alright). Like I said, Im new to this cookie business.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900