Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
GeneralRe: Creating this "Please wait..." window? Pin
DaveyM695-Jul-09 8:54
professionalDaveyM695-Jul-09 8:54 
GeneralRe: Creating this "Please wait..." window? Pin
SimpleData5-Jul-09 9:04
SimpleData5-Jul-09 9:04 
GeneralRe: Creating this "Please wait..." window? Pin
DaveyM695-Jul-09 9:15
professionalDaveyM695-Jul-09 9:15 
AnswerRe: Creating this "Please wait..." window? Pin
Alan N5-Jul-09 9:52
Alan N5-Jul-09 9:52 
QuestionError message Pin
danzar5-Jul-09 7:38
danzar5-Jul-09 7:38 
AnswerRe: Error message Pin
Blue_Boy5-Jul-09 7:40
Blue_Boy5-Jul-09 7:40 
GeneralRe: Error message Pin
danzar5-Jul-09 7:48
danzar5-Jul-09 7:48 
GeneralRe: Error message Pin
Blue_Boy5-Jul-09 7:50
Blue_Boy5-Jul-09 7:50 
GeneralRe: Error message Pin
danzar5-Jul-09 7:58
danzar5-Jul-09 7:58 
QuestionTracing association application Pin
Muammar©5-Jul-09 5:56
Muammar©5-Jul-09 5:56 
AnswerRe: Tracing association application [modified] Pin
dan!sh 5-Jul-09 6:07
professional dan!sh 5-Jul-09 6:07 
QuestionRe: Tracing association application Pin
Muammar©5-Jul-09 6:30
Muammar©5-Jul-09 6:30 
AnswerRe: Tracing association application Pin
Giorgi Dalakishvili5-Jul-09 8:30
mentorGiorgi Dalakishvili5-Jul-09 8:30 
GeneralRe: Tracing association application Pin
Muammar©5-Jul-09 9:33
Muammar©5-Jul-09 9:33 
GeneralRe: Tracing association application Pin
Giorgi Dalakishvili5-Jul-09 9:47
mentorGiorgi Dalakishvili5-Jul-09 9:47 
GeneralRe: Tracing association application Pin
Muammar©5-Jul-09 11:00
Muammar©5-Jul-09 11:00 
Questionuse methods at a WebService in Win app.. Pin
Mtyb5-Jul-09 5:41
Mtyb5-Jul-09 5:41 
AnswerRe: use methods at a WebService in Win app.. Pin
dan!sh 5-Jul-09 5:49
professional dan!sh 5-Jul-09 5:49 
GeneralRe: use methods at a WebService in Win app.. Pin
Mtyb5-Jul-09 5:54
Mtyb5-Jul-09 5:54 
GeneralRe: use methods at a WebService in Win app.. Pin
dan!sh 5-Jul-09 6:03
professional dan!sh 5-Jul-09 6:03 
GeneralRe: use methods at a WebService in Win app.. Pin
Mtyb5-Jul-09 7:04
Mtyb5-Jul-09 7:04 
GeneralRe: use methods at a WebService in Win app.. Pin
dan!sh 5-Jul-09 7:50
professional dan!sh 5-Jul-09 7:50 
QuestionHTTP Post Pin
Endien5-Jul-09 5:23
Endien5-Jul-09 5:23 
AnswerRe: HTTP Post Pin
Rozis5-Jul-09 11:30
Rozis5-Jul-09 11:30 
GeneralRe: HTTP Post Pin
Endien5-Jul-09 15:08
Endien5-Jul-09 15:08 
I didn't quite understand what you mean.

But, i think what your point is like this ?

<br />
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://sokim.seltekom.com/sokim/index.php?do=default");<br />
request.CookieContainer = new CookieContainer();<br />
<br />
HttpWebResponse response = (HttpWebResponse)request.GetResponse();


First, i trying to get the cookie and then put the cookie on the next request?

WebReq.CookieContainer.Add(response.Cookies[0]);<br />
Stream PostData = WebReq.GetRequestStream();<br />
PostData.Write(buffer, 0, buffer.Length);<br />
PostData.Close();<br />
HttpWebResponse WebResp = (HttpWebResponse)WebReq.GetResponse();<br />
                <br />
Stream Answer = WebResp.GetResponseStream();<br />
StreamReader _Answer = new StreamReader(Answer);<br />
vystup = _Answer.ReadToEnd();


Like that?

When i tried above code, the vystup is always NULL (no response)

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.