Click here to Skip to main content
15,924,829 members
Home / Discussions / C#
   

C#

 
AnswerRe: Converting bytearray to string-> String returns boxes and question mark. Pin
SeMartens5-Dec-08 0:23
SeMartens5-Dec-08 0:23 
AnswerRe: Converting bytearray to string-> String returns boxes and question mark. Pin
Guffa5-Dec-08 2:14
Guffa5-Dec-08 2:14 
QuestionReflection - subclass identification [modified] Pin
devvvy4-Dec-08 22:03
devvvy4-Dec-08 22:03 
AnswerRe: Reflection - subclass identification Pin
Dave Kreskowiak5-Dec-08 4:01
mveDave Kreskowiak5-Dec-08 4:01 
GeneralRe: Reflection - subclass identification Pin
devvvy5-Dec-08 5:29
devvvy5-Dec-08 5:29 
GeneralRe: Reflection - subclass identification Pin
Dave Kreskowiak5-Dec-08 16:19
mveDave Kreskowiak5-Dec-08 16:19 
GeneralRe: Reflection - subclass identification Pin
devvvy5-Dec-08 16:51
devvvy5-Dec-08 16:51 
QuestionCookies don't get parsed in httpWebResponse Pin
Reiner S4-Dec-08 21:47
Reiner S4-Dec-08 21:47 
Dear all,

perhaps someone can help me. I'm trying to write a program that retireves information from my amazon seller account, but it fails to get the cookies Amazon sends me.
I have the following code:
CookieContainer cookies = new CookieContainer();
HttpWebRequest req = (HttpWebRequest)WebRequest.Create("https://www.amazon.de/gp/sign-in.html?ie=UTF8&email=...@web.de");
req.CookieContainer = cookies;
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();

The cookies do not end up in the cookie container of the response, even though I can see them in the response header. Cookies from another website work.
I have now discovered that the program perhaps cannot handle the format of the set-cookie header correctly when parsing the cookies.
The cookies that don't work have the expiration date given as
Expires=Fri Dec 05 12:05:33 2008 GMT

while cookies from another host that can be parsed have it as
Expires=Fri, 05-Dec-08 12:05:33 GMT

Could this really be the cause for the cookie to be rejected by automatic parsing? If so, how can I set the format string for the application so it will parse the cookies correctly?

Any help is greatly appreciated
Reiner
AnswerRe: Cookies don't get parsed in httpWebResponse Pin
Member 194676912-May-10 2:15
Member 194676912-May-10 2:15 
QuestionIf new drive detected.. an event happens Pin
Silvyster4-Dec-08 20:41
Silvyster4-Dec-08 20:41 
AnswerRe: If new drive detected.. an event happens Pin
TJS4u4-Dec-08 22:36
TJS4u4-Dec-08 22:36 
GeneralRe: If new drive detected.. an event happens Pin
Silvyster4-Dec-08 23:48
Silvyster4-Dec-08 23:48 
GeneralRe: If new drive detected.. an event happens Pin
Luc Pattyn5-Dec-08 1:44
sitebuilderLuc Pattyn5-Dec-08 1:44 
AnswerRe: If new drive detected.. an event happens Pin
Simon P Stevens5-Dec-08 1:58
Simon P Stevens5-Dec-08 1:58 
Question.net remoting Pin
krinaljariwala4-Dec-08 19:42
krinaljariwala4-Dec-08 19:42 
AnswerRe: .net remoting Pin
leppie4-Dec-08 20:20
leppie4-Dec-08 20:20 
GeneralRe: .net remoting Pin
krinaljariwala4-Dec-08 21:03
krinaljariwala4-Dec-08 21:03 
GeneralRe: .net remoting Pin
leppie5-Dec-08 0:41
leppie5-Dec-08 0:41 
QuestionLoad data from .txt file to listbox problem. Pin
irsalina4-Dec-08 19:01
irsalina4-Dec-08 19:01 
AnswerRe: Load data from .txt file to listbox problem. Pin
Christian Graus4-Dec-08 19:04
protectorChristian Graus4-Dec-08 19:04 
QuestionRe: Load data from .txt file to listbox problem. Pin
irsalina7-Dec-08 20:56
irsalina7-Dec-08 20:56 
QuestionHow to delete data from listbox and then, delete that item in file txt? Pin
irsalina4-Dec-08 18:55
irsalina4-Dec-08 18:55 
AnswerRe: How to delete data from listbox and then, delete that item in file txt? Pin
Christian Graus4-Dec-08 19:02
protectorChristian Graus4-Dec-08 19:02 
QuestionMulticolumn Textbox Pin
SelvaSR4-Dec-08 17:53
SelvaSR4-Dec-08 17:53 
AnswerRe: Multicolumn Textbox Pin
CodingYoshi4-Dec-08 18:33
CodingYoshi4-Dec-08 18:33 

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.