Click here to Skip to main content
15,906,625 members
Home / Discussions / C#
   

C#

 
AnswerRe: some questions... Pin
S. Senthil Kumar3-Oct-05 18:38
S. Senthil Kumar3-Oct-05 18:38 
Questionxml parsing of IIS log files Pin
Member 23270093-Oct-05 11:17
Member 23270093-Oct-05 11:17 
AnswerRe: xml parsing of IIS log files Pin
leppie3-Oct-05 20:31
leppie3-Oct-05 20:31 
GeneralRe: xml parsing of IIS log files Pin
Member 23270094-Oct-05 11:02
Member 23270094-Oct-05 11:02 
QuestionGraph vertex edge weights Pin
Gedrain3-Oct-05 10:52
Gedrain3-Oct-05 10:52 
AnswerRe: Graph vertex edge weights Pin
Mohamad Al Husseiny3-Oct-05 12:47
Mohamad Al Husseiny3-Oct-05 12:47 
GeneralRe: Graph vertex edge weights Pin
Gedrain4-Oct-05 8:26
Gedrain4-Oct-05 8:26 
QuestionWebresponse Question Pin
Steve Messer3-Oct-05 10:13
Steve Messer3-Oct-05 10:13 
I am trying to get a second response from a Webrequest. The server that I am talking to works as follows.

First here is my code:

string postData = ""; // filled with xml request data

Uri myUri = new Uri("http://208.XXX.XX.XXX:10224/?ReturnAddress=209.XX.XX.XX/recvpost.php");
HttpWebRequest h =  (HttpWebRequest)WebRequest.Create(myUri);
			
h.Method = "POST";
h.ContentType="text/xml";
h.ContentLength=postData.Length;

Stream newStream = h.GetRequestStream();
newStream.Write(byte1,0,byte1.Length);
newStream.Close();

WebResponse resp = h.GetResponse();

StreamReader reader = new StreamReader(resp.GetResponseStream());

string str = reader.ReadLine();
while(str != null)
{
    Console.WriteLine(str);
    MessageBox.Show( str );
    str = reader.ReadLine();
}

resp.Close();


1) Send your request, when received the replay "OK" will be sent.

2) Once the server has the request ready it will send the reply.

3) I am receiving the OK but nothing else.


How do you get secondary responses?
GeneralRe: Webresponse Question Pin
Guffa3-Oct-05 14:19
Guffa3-Oct-05 14:19 
GeneralRe: Webresponse Question Pin
Steve Messer3-Oct-05 14:45
Steve Messer3-Oct-05 14:45 
GeneralRe: Webresponse Question Pin
seee sharp3-Oct-05 17:52
seee sharp3-Oct-05 17:52 
GeneralRe: Webresponse Question Pin
Steve Messer3-Oct-05 19:03
Steve Messer3-Oct-05 19:03 
GeneralRe: Webresponse Question Pin
Guffa3-Oct-05 23:59
Guffa3-Oct-05 23:59 
QuestionDataGrid refresh??? Pin
Small Rat3-Oct-05 8:32
Small Rat3-Oct-05 8:32 
QuestionXML Format Pin
PHDENG813-Oct-05 7:47
PHDENG813-Oct-05 7:47 
QuestionRetrieving Data From a C++ Application Pin
budidharma3-Oct-05 6:59
budidharma3-Oct-05 6:59 
AnswerRe: Retrieving Data From a C++ Application Pin
miah alom3-Oct-05 7:14
miah alom3-Oct-05 7:14 
GeneralRe: Retrieving Data From a C++ Application Pin
budidharma3-Oct-05 7:28
budidharma3-Oct-05 7:28 
QuestionCommunicate With USB Port Pin
amirrezaie3-Oct-05 6:20
professionalamirrezaie3-Oct-05 6:20 
QuestionCan the base class detect changes in the inheriting class? Pin
jdavison20003-Oct-05 6:10
jdavison20003-Oct-05 6:10 
AnswerRe: Can the base class detect changes in the inheriting class? Pin
Member 10325913-Oct-05 6:34
Member 10325913-Oct-05 6:34 
GeneralRe: Can the base class detect changes in the inheriting class? Pin
jdavison20003-Oct-05 6:41
jdavison20003-Oct-05 6:41 
GeneralRe: Can the base class detect changes in the inheriting class? Pin
Dan Neely4-Oct-05 2:13
Dan Neely4-Oct-05 2:13 
QuestionHow to count the jobs shown in the taskbar and get their names (or texts)? Pin
bihshan.lin3-Oct-05 5:46
bihshan.lin3-Oct-05 5:46 
QuestionAborting Threads Pin
NitinR3-Oct-05 5:37
NitinR3-Oct-05 5:37 

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.