Click here to Skip to main content
15,902,938 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questioncascading combo boxes Pin
steve 310-Nov-09 23:37
steve 310-Nov-09 23:37 
AnswerRe: cascading combo boxes Pin
Shameel11-Nov-09 22:57
professionalShameel11-Nov-09 22:57 
GeneralRe: cascading combo boxes Pin
steve 317-Nov-09 13:01
steve 317-Nov-09 13:01 
GeneralRe: cascading combo boxes Pin
Orbie8-Jan-10 11:14
Orbie8-Jan-10 11:14 
QuestionExport crystal report to text file Pin
smraj150310-Nov-09 23:35
smraj150310-Nov-09 23:35 
AnswerRe: Export crystal report to text file Pin
i gr811-Nov-09 6:31
i gr811-Nov-09 6:31 
AnswerRe: Export crystal report to text file Pin
Shameel11-Nov-09 22:58
professionalShameel11-Nov-09 22:58 
QuestionWhy don't cookies from Amazon.com delivered to HttpWebResponse.Cookies? Pin
dims1210-Nov-09 22:45
dims1210-Nov-09 22:45 
Here is the code:

HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("http://www.amazon.com/gp/help/customer/display.html");
            //HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("https://www.healthnet.com");
            request.CookieContainer = new CookieContainer();
            HttpWebResponse response = (HttpWebResponse)request.GetResponse();


            Console.WriteLine("All headers:");
            for (int i = 0; i < response.Headers.Count; ++i )
            {
                Console.WriteLine("{0}: \n {1}", response.Headers.Keys[i], response.Headers[i]);
            }

            Console.WriteLine("");
            Console.WriteLine("All cookies:");
            foreach (Cookie cookie in response.Cookies)
            {
                Console.WriteLine("{0}: {1}", cookie.Name, cookie.Value);
            }


here is the output:

All headers:
x-amz-id-1:
 0P09T2EKQ1NZCTH6JTK8
x-amz-id-2:
 goS/ANFrq3GUOuMXYT3zBq5SfqNM5CfI
Vary:
 Accept-Encoding,User-Agent
Content-Type:
 text/html; charset=ISO-8859-1
Date:
 Wed, 11 Nov 2009 09:43:28 GMT
P3P:
 policyref="http://www.amazon.com/w3c/p3p.xml",CP="AMZN "
Set-Cookie:
 session-id-time=1258531200l; path=/; domain=.amazon.com; expires=Wed Nov 18 08:
00:00 2009 GMT,session-id=180-8758643-6589604; path=/; domain=.amazon.com; expir
es=Wed Nov 18 08:00:00 2009 GMT
Server:
 Server
Transfer-Encoding:
 chunked

All cookies:


Why there are no cookies in collection while there are Set-Cookie headers?

Why the same code works with healthnet.com? (commented URL)
AnswerRe: Why don't cookies from Amazon.com delivered to HttpWebResponse.Cookies? Pin
dims1211-Nov-09 20:05
dims1211-Nov-09 20:05 
Questionpls help me in crystal report Pin
rashidaee10-Nov-09 20:00
rashidaee10-Nov-09 20:00 
AnswerRe: pls help me in crystal report Pin
The Man from U.N.C.L.E.11-Nov-09 7:46
The Man from U.N.C.L.E.11-Nov-09 7:46 
QuestionReading From XML File Pin
Habib_78610-Nov-09 18:33
Habib_78610-Nov-09 18:33 
AnswerRe: Reading From XML File Pin
Not Active11-Nov-09 1:32
mentorNot Active11-Nov-09 1:32 
QuestionAsp.net decryption problem Pin
harikreddy10-Nov-09 0:38
harikreddy10-Nov-09 0:38 
AnswerRe: Asp.net decryption problem Pin
The Man from U.N.C.L.E.10-Nov-09 7:15
The Man from U.N.C.L.E.10-Nov-09 7:15 
Questioncd database [modified] Pin
mimi84699-Nov-09 20:31
mimi84699-Nov-09 20:31 
AnswerRe: cd database Pin
Pete O'Hanlon9-Nov-09 22:08
mvePete O'Hanlon9-Nov-09 22:08 
QuestionRe: cd database Pin
mimi846910-Nov-09 11:45
mimi846910-Nov-09 11:45 
AnswerRe: cd database Pin
Luc Pattyn10-Nov-09 13:29
sitebuilderLuc Pattyn10-Nov-09 13:29 
GeneralRe: cd database Pin
Mark Salsbery10-Nov-09 13:40
Mark Salsbery10-Nov-09 13:40 
AnswerRe: cd database Pin
Pete O'Hanlon10-Nov-09 22:55
mvePete O'Hanlon10-Nov-09 22:55 
AnswerRe: cd database Pin
The Man from U.N.C.L.E.10-Nov-09 7:10
The Man from U.N.C.L.E.10-Nov-09 7:10 
GeneralRe: cd database Pin
mimi846910-Nov-09 12:17
mimi846910-Nov-09 12:17 
GeneralRe: cd database Pin
The Man from U.N.C.L.E.11-Nov-09 0:25
The Man from U.N.C.L.E.11-Nov-09 0:25 
QuestionWindows Taskbar Information Pin
Tony Tullemans9-Nov-09 14:31
Tony Tullemans9-Nov-09 14:31 

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.