Click here to Skip to main content
15,910,358 members
Home / Discussions / C#
   

C#

 
QuestionPermission assign based on User previllage. Pin
sayemahmed7-Nov-08 16:54
sayemahmed7-Nov-08 16:54 
AnswerRe: Permission assign based on User previllage. Pin
sayemahmed7-Nov-08 17:07
sayemahmed7-Nov-08 17:07 
AnswerRe: Permission assign based on User previllage. Pin
Dave Kreskowiak8-Nov-08 4:35
mveDave Kreskowiak8-Nov-08 4:35 
QuestionXML as database Pin
nelsonpaixao7-Nov-08 15:32
nelsonpaixao7-Nov-08 15:32 
AnswerRe: XML as database Pin
#realJSOP8-Nov-08 0:06
professional#realJSOP8-Nov-08 0:06 
QuestionSave TO xml FROM datagridview Pin
nelsonpaixao7-Nov-08 15:16
nelsonpaixao7-Nov-08 15:16 
AnswerRe: Save TO xml FROM datagridview Pin
Dave Kreskowiak8-Nov-08 4:31
mveDave Kreskowiak8-Nov-08 4:31 
AnswerRe: Save TO xml FROM datagridview Pin
Mbah Dhaim8-Nov-08 4:59
Mbah Dhaim8-Nov-08 4:59 
QuestionCan anybody give link to good article on instumentation (Tracing) in application? I tried to search though. Pin
Member 23244837-Nov-08 13:28
Member 23244837-Nov-08 13:28 
QuestionEmbedded Xml: Ok it work, but ... why? Pin
nelsonpaixao7-Nov-08 13:20
nelsonpaixao7-Nov-08 13:20 
AnswerRe: Embedded Xml: Ok it work, but ... why? Pin
Guffa7-Nov-08 14:31
Guffa7-Nov-08 14:31 
AnswerRe: Embedded Xml: Ok it work, but ... why? Pin
Anthony Mushrow7-Nov-08 14:53
professionalAnthony Mushrow7-Nov-08 14:53 
AnswerRe: Embedded Xml: Ok it work, but ... why? Pin
nelsonpaixao7-Nov-08 15:06
nelsonpaixao7-Nov-08 15:06 
QuestionHelp with Properties.Settings.Default.Save() Pin
Project2477-Nov-08 13:12
Project2477-Nov-08 13:12 
QuestionMultiline string property at design time (like RTF) Pin
Chris Copeland7-Nov-08 11:13
mveChris Copeland7-Nov-08 11:13 
AnswerRe: Multiline string property at design time (like RTF) Pin
Thomas Stockwell7-Nov-08 14:33
professionalThomas Stockwell7-Nov-08 14:33 
GeneralRe: Multiline string property at design time (like RTF) Pin
Chris Copeland7-Nov-08 20:23
mveChris Copeland7-Nov-08 20:23 
Questioni want help in richtextbox problem Pin
BESHOY MARKO7-Nov-08 10:10
BESHOY MARKO7-Nov-08 10:10 
AnswerRe: i want help in richtextbox problem Pin
Giorgi Dalakishvili7-Nov-08 10:13
mentorGiorgi Dalakishvili7-Nov-08 10:13 
GeneralRe: i want help in richtextbox problem Pin
BESHOY MARKO7-Nov-08 10:34
BESHOY MARKO7-Nov-08 10:34 
AnswerRe: i want help in richtextbox problem Pin
sph3rex9-Nov-08 2:10
sph3rex9-Nov-08 2:10 
QuestionC# calling a webpage issues , whilst same URL works in FireFox Pin
Hyperionza7-Nov-08 9:59
Hyperionza7-Nov-08 9:59 
AnswerRe: C# calling a webpage issues , whilst same URL works in FireFox Pin
Guffa7-Nov-08 11:16
Guffa7-Nov-08 11:16 
GeneralRe: C# calling a webpage issues , whilst same URL works in FireFox Pin
Hyperionza7-Nov-08 21:58
Hyperionza7-Nov-08 21:58 
1)
WebRequest wrq1 = WebRequest.Create("http://a.b.com/site.php?uid=*********");
        WebResponse wrs1 = wrq1.GetResponse();
        StreamReader sin = new StreamReader(wrs1.GetResponseStream());
        .
        .
        .
        wrs1.Close();


2)
WebRequest wrq2 = WebRequest.Create("http://a.b.com/rsrc.php?#Referer=http://a.b.com/site.php?uid=********");
        wrq2.Headers.Add(HttpRequestHeader.AcceptLanguage, "en-gb,en;q=0.5");
        wrq2.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate");
        wrq2.Headers.Add(HttpRequestHeader.AcceptCharset, "ISO-8859-1,utf-8;q=0.7,*;q=0.7");
        wrq2.Headers.Add(HttpRequestHeader.KeepAlive, "300");
        wrq2.Headers.Add(HttpRequestHeader.Cookie, "...");
        WebResponse wrs2 = wrq2.GetResponse();
        .
        .
        .
        wrs2.Close();


3)
WebRequest wrq3 = WebRequest.Create("http://a.b.com/site.php?uid=&value=..&uniqid=************");
        //            wrq3.Headers.Add(HttpRequestHeader.AcceptLanguage, "en-gb,en;q=0.5");
        //            wrq3.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate");
        //            wrq3.Headers.Add(HttpRequestHeader.AcceptCharset, "ISO-8859-1,utf-8;q=0.7,*;q=0.7");
        //            wrq3.Headers.Add(HttpRequestHeader.KeepAlive, "300");
        //            wrq3.Headers.Add(HttpRequestHeader.Cookie, "...");
        wrq3.Method = "GET";
        WebResponse wrs3 = wrq3.GetResponse();
        .
        .
        .
        wrs3.Close();


1 and 2 work fine, and all is successful until I hit 3. Like I said, doesnt matter whether its GET or POST, Ive tried both, tried with and without headers which have seemingly no effect at all on this one. With the GET method as above, after it had failed, i copied and pasted the generated url (ive put its general form there not its actual form) into firefox and had success so I know that Im creating the URL correctly, Ive just got no idea what else is wrong. I cant think of anything.
GeneralRe: C# calling a webpage issues , whilst same URL works in FireFox Pin
sph3rex8-Nov-08 6:20
sph3rex8-Nov-08 6:20 

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.