Click here to Skip to main content
15,887,867 members
Home / Discussions / C#
   

C#

 
GeneralRe: Drag & Drop Interface Pin
Heath Stewart3-Feb-04 4:54
protectorHeath Stewart3-Feb-04 4:54 
GeneralRe: Drag & Drop Interface Pin
johnstacey3-Feb-04 11:42
johnstacey3-Feb-04 11:42 
GeneralSerializable socket Pin
Snowjim2-Feb-04 14:40
Snowjim2-Feb-04 14:40 
GeneralRe: Serializable socket Pin
Heath Stewart3-Feb-04 5:10
protectorHeath Stewart3-Feb-04 5:10 
GeneralCookies problem... Pin
profoundwhispers2-Feb-04 14:20
profoundwhispers2-Feb-04 14:20 
GeneralRe: Cookies problem... Pin
Heath Stewart3-Feb-04 5:16
protectorHeath Stewart3-Feb-04 5:16 
GeneralRe: Cookies problem... Pin
profoundwhispers3-Feb-04 7:52
profoundwhispers3-Feb-04 7:52 
GeneralRe: Cookies problem... Pin
Heath Stewart3-Feb-04 8:54
protectorHeath Stewart3-Feb-04 8:54 
Okay, there's a few things I have to mention. When using form-based authentication, the HttpWebRequest.Credentials won't suffice. You either have to POST or GET data to the form action as you've discovered. I just wanted to mention this to be clear.

The problem looks like it doesn't recognize your user agent (the browser name and info). Fortunately, you can trick into thinking another browser is making a request (i.e., one that supports cookies) by the HttpWebRequest.UserAgent to something like "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" and it will think Internet Explorer 6.0 on Windows XP is making the request. This error might be making such assumptions because it's quicker than setting a cookie and checking for it in the next request (which requires making a request and getting a response twice). It's worth a try.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Cookies problem... Pin
profoundwhispers3-Feb-04 9:17
profoundwhispers3-Feb-04 9:17 
GeneralRe: Cookies problem... Pin
Heath Stewart3-Feb-04 9:38
protectorHeath Stewart3-Feb-04 9:38 
GeneralRe: Cookies problem... Pin
profoundwhispers3-Feb-04 9:58
profoundwhispers3-Feb-04 9:58 
GeneralRe: Cookies problem... Pin
Heath Stewart3-Feb-04 10:25
protectorHeath Stewart3-Feb-04 10:25 
GeneralRe: Cookies problem... Pin
profoundwhispers3-Feb-04 10:40
profoundwhispers3-Feb-04 10:40 
GeneralRe: Cookies problem... Pin
profoundwhispers3-Feb-04 10:46
profoundwhispers3-Feb-04 10:46 
GeneralRe: Cookies problem... Pin
Heath Stewart3-Feb-04 10:53
protectorHeath Stewart3-Feb-04 10:53 
GeneralC# exceptions not showing filename/line numbers (PDB issue?) Pin
Arun Bhalla2-Feb-04 13:12
Arun Bhalla2-Feb-04 13:12 
GeneralRe: C# exceptions not showing filename/line numbers (PDB issue?) Pin
Heath Stewart3-Feb-04 5:22
protectorHeath Stewart3-Feb-04 5:22 
GeneralRe: C# exceptions not showing filename/line numbers (PDB issue?) Pin
Arun Bhalla3-Feb-04 7:49
Arun Bhalla3-Feb-04 7:49 
GeneralRe: C# exceptions not showing filename/line numbers (PDB issue?) Pin
Heath Stewart3-Feb-04 8:49
protectorHeath Stewart3-Feb-04 8:49 
GeneralRe: C# exceptions not showing filename/line numbers (PDB issue?) Pin
Arun Bhalla3-Feb-04 10:26
Arun Bhalla3-Feb-04 10:26 
GeneralRe: C# exceptions not showing filename/line numbers (PDB issue?) Pin
Heath Stewart3-Feb-04 10:32
protectorHeath Stewart3-Feb-04 10:32 
GeneralRe: C# exceptions not showing filename/line numbers (PDB issue?) Pin
Arun Bhalla3-Feb-04 11:08
Arun Bhalla3-Feb-04 11:08 
GeneralRe: C# exceptions not showing filename/line numbers (PDB issue?) Pin
Heath Stewart3-Feb-04 11:15
protectorHeath Stewart3-Feb-04 11:15 
GeneralWinForms app displays differently on different computers. Pin
~michL~2-Feb-04 12:47
~michL~2-Feb-04 12:47 
GeneralRe: WinForms app displays differently on different computers. Pin
Heath Stewart3-Feb-04 5:29
protectorHeath Stewart3-Feb-04 5:29 

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.