Click here to Skip to main content
15,909,437 members
Home / Discussions / C#
   

C#

 
GeneralRe: Check Registry for Key Pin
Scott Dorman8-Oct-07 10:13
professionalScott Dorman8-Oct-07 10:13 
QuestionHttpwebrequest 0 cookies from any site?? Pin
atj8858-Oct-07 7:32
atj8858-Oct-07 7:32 
AnswerRe: Httpwebrequest 0 cookies from any site?? Pin
Guffa8-Oct-07 7:47
Guffa8-Oct-07 7:47 
GeneralRe: Httpwebrequest 0 cookies from any site?? Pin
atj8858-Oct-07 8:18
atj8858-Oct-07 8:18 
GeneralRe: Httpwebrequest 0 cookies from any site?? Pin
Guffa8-Oct-07 9:50
Guffa8-Oct-07 9:50 
GeneralRe: Httpwebrequest 0 cookies from any site?? Pin
Pete O'Hanlon8-Oct-07 10:13
mvePete O'Hanlon8-Oct-07 10:13 
GeneralRe: Httpwebrequest 0 cookies from any site?? Pin
atj8858-Oct-07 10:18
atj8858-Oct-07 10:18 
AnswerRe: Httpwebrequest 0 cookies from any site?? Pin
Guffa8-Oct-07 13:17
Guffa8-Oct-07 13:17 
atj885 wrote:
Don't you see I assign a New object to cookie container on the second line?

request.CookieContainer = new CookieContainer();


Yes, I see that. You put the CookieContainer in the request object. The cookies that the server sets are returned in the response object. I have already told you this twice.

atj885 wrote:
if you don't know the subject, please don't comment and waste both of our time.


I know the subject, but I really feel that I am wasting my time. It's like talking to a wall. A very ungrateful wall.

atj885 wrote:
Besides this is the exact code from microsoft site


Where? If it really is, then they have really screwed up.

Here is the page in MSDN Library where you can find the text that I quoted earlier:

MSDN Library: CookieContainer property[^]

Take a look at the example code on the page. Notice how they read the cookie values from the response object, not the request object.

---
single minded; short sighted; long gone;

GeneralRe: Httpwebrequest 0 cookies from any site?? Pin
atj8858-Oct-07 15:17
atj8858-Oct-07 15:17 
AnswerRe: Httpwebrequest 0 cookies from any site?? Pin
Guffa8-Oct-07 21:27
Guffa8-Oct-07 21:27 
GeneralRe: Httpwebrequest 0 cookies from any site?? Pin
Pete O'Hanlon8-Oct-07 21:56
mvePete O'Hanlon8-Oct-07 21:56 
QuestionCustom Wizard in C# Pin
kaminem8-Oct-07 7:20
kaminem8-Oct-07 7:20 
AnswerRe: Custom Wizard in C# Pin
TJoe10-Oct-07 9:00
TJoe10-Oct-07 9:00 
Questionproblem in CD insetrtion and CD removel in windows vista Pin
sumd8-Oct-07 7:06
sumd8-Oct-07 7:06 
Questionrich text box problem Pin
EvilProject8-Oct-07 5:50
EvilProject8-Oct-07 5:50 
QuestionCannot send all mails by SmtpClient.Send method until process is killed Pin
debnarayan8-Oct-07 5:19
debnarayan8-Oct-07 5:19 
AnswerRe: Cannot send all mails by SmtpClient.Send method until process is killed Pin
Andrei Ungureanu8-Oct-07 5:24
Andrei Ungureanu8-Oct-07 5:24 
GeneralRe: Cannot send all mails by SmtpClient.Send method until process is killed Pin
debnarayan8-Oct-07 5:33
debnarayan8-Oct-07 5:33 
AnswerRe: Cannot send all mails by SmtpClient.Send method until process is killed Pin
PIEBALDconsult8-Oct-07 5:42
mvePIEBALDconsult8-Oct-07 5:42 
GeneralRe: Cannot send all mails by SmtpClient.Send method until process is killed Pin
debnarayan8-Oct-07 5:54
debnarayan8-Oct-07 5:54 
AnswerRe: Cannot send all mails by SmtpClient.Send method until process is killed Pin
Dan Neely8-Oct-07 8:03
Dan Neely8-Oct-07 8:03 
GeneralRe: Cannot send all mails by SmtpClient.Send method until process is killed Pin
debnarayan8-Oct-07 18:29
debnarayan8-Oct-07 18:29 
AnswerRe: Cannot send all mails by SmtpClient.Send method until process is killed Pin
debnarayan22-Oct-07 19:38
debnarayan22-Oct-07 19:38 
GeneralRe: Cannot send all mails by SmtpClient.Send method until process is killed Pin
Suj_7817-Mar-10 0:20
Suj_7817-Mar-10 0:20 
Questionget() and set() methods Pin
66chawger8-Oct-07 4:58
66chawger8-Oct-07 4:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.