Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Getting System cookies
I have a WebRequest that is posting various data.

Of course, it won't let you post the data if you're not "logged in". I
need to grab the cookies that are sitting in my IE cache for the site,
and send them up with the request.

Is there an easy way to do this?  Is there ANY way to do this?

I have

HttpWebRequest wr = (HttpWebRequest)WebRequest.Create(url);

I THOUGHT that I simply had to:

CookieContainer cc = new CookieContainer();
CookieCollection cookies = cc.GetCookies(wr.RequestUri);
cc.Add(cookies);
wr.CookieContainer = cc;

I was painfully wrong.

I'm running out of hair from pulling, and forehead from banging :(

Brian Hampson
System Adminsitrator, Americas
ALS Environmental


Report this thread to moderator Post Follow-up to this message
Old Post
Brian Hampson
01-30-06 08:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

C# archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:17 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.