Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to retrieve Cookies any of a website entered in a textbox?

I've a textbox, where in i will enter a URL eg: http://www.google.co.in/
When I click on button I need the entire Cookies the entered URL to display in RichTextBox.

Could you any one please help in getting my requirement fulfill?

If above is not possible as per suggestion received, how can we get below set of information of an entered URL?
session id=
session id time=
ubid main=
etc..

Thank you in advance.
Posted
Updated 30-May-13 2:02am
v2
Comments
Prasad Khandekar 29-May-13 12:03pm    
Hello Krishna,

Do you the cookies that browser is going to sent to this URL (I am afraid you can't do this) or cookies that this site is going to return as a response, you can do this by issuing a GET request using HttpClient and then use HttpResponseMessage.Header to get the cookie information.

Regards,
krishna kishore58 30-May-13 5:20am    
How can we get below set of information of an entered URL?

session id=
session id time=
ubid main=
etc..

1 solution

If you mean read the cookies that the site has written to the client PC, that won't work - not only is there no facility for this (understandably), but it's not even necessarily possible while the client browser is open if you could run an app on the client PC. Cookies aren't shared between browsers: IE stores them in individual files, but differently to Firefox, and Chrome uses a SQLite database to which it holds an exclusive lock while it is running.

So, I don't know what you are trying to achieve exactly, but it is very unlikely that you can do it at all.
 
Share this answer
 

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