Click here to Skip to main content
15,895,423 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: C# calling a webpage issues , whilst same URL works in FireFox Pin
Hyperionza8-Nov-08 23:38
Hyperionza8-Nov-08 23:38 
QuestionHow to change Group Header Font in Crystal Report Left Most Group Tree? Pin
majidbhutta7-Nov-08 7:32
majidbhutta7-Nov-08 7:32 
Questionmicrosoft loading problem Pin
netJP12L7-Nov-08 7:06
netJP12L7-Nov-08 7:06 
AnswerRe: microsoft loading problem Pin
sph3rex8-Nov-08 6:12
sph3rex8-Nov-08 6:12 
QuestionDetect which process is accessing a file Pin
Aram Azhari7-Nov-08 6:00
Aram Azhari7-Nov-08 6:00 
AnswerRe: Detect which process is accessing a file Pin
Giorgi Dalakishvili7-Nov-08 6:34
mentorGiorgi Dalakishvili7-Nov-08 6:34 
Questionhash value of user password from Domain Pin
Member 31961327-Nov-08 5:11
Member 31961327-Nov-08 5:11 
AnswerRe: hash value of user password from Domain Pin
Dave Kreskowiak7-Nov-08 7:33
mveDave Kreskowiak7-Nov-08 7:33 
AnswerRe: hash value of user password from Domain Pin
Dan Neely7-Nov-08 10:26
Dan Neely7-Nov-08 10:26 
Questioncalling C# code from SQL Server procedure. Pin
pankazmittal7-Nov-08 4:10
pankazmittal7-Nov-08 4:10 
AnswerRe: calling C# code from SQL Server procedure. Pin
Simon P Stevens7-Nov-08 4:33
Simon P Stevens7-Nov-08 4:33 
AnswerRe: calling C# code from SQL Server procedure. Pin
Guffa7-Nov-08 11:37
Guffa7-Nov-08 11:37 
AnswerRe: calling C# code from SQL Server procedure. Pin
Atif Shahbaz8-Nov-08 6:18
Atif Shahbaz8-Nov-08 6:18 
QuestionCopying an object instance instead of a reference [modified] Pin
Ankit Rajpoot7-Nov-08 3:54
Ankit Rajpoot7-Nov-08 3:54 
AnswerRe: Copying an object instance instead of a reference Pin
J a a n s7-Nov-08 4:01
professionalJ a a n s7-Nov-08 4:01 
GeneralRe: Copying an object instance instead of a reference Pin
Simon P Stevens7-Nov-08 4:26
Simon P Stevens7-Nov-08 4:26 

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.