Click here to Skip to main content
15,905,776 members
Home / Discussions / C#
   

C#

 
GeneralRe: RichTextBox: Index of the first and last char we see in it ? Pin
evdoxos1-Aug-04 22:15
evdoxos1-Aug-04 22:15 
GeneralReturn Values Pin
JayJ1-Aug-04 20:14
JayJ1-Aug-04 20:14 
GeneralRe: Return Values Pin
Colin Angus Mackay1-Aug-04 20:16
Colin Angus Mackay1-Aug-04 20:16 
GeneralRe: Return Values Pin
GuruPasx1-Aug-04 20:28
GuruPasx1-Aug-04 20:28 
GeneralRe: Return Values Pin
JayJ1-Aug-04 20:39
JayJ1-Aug-04 20:39 
GeneralRe: Return Values Pin
evdoxos1-Aug-04 22:38
evdoxos1-Aug-04 22:38 
Generalstop an asynchronous server Pin
khchan1-Aug-04 18:44
khchan1-Aug-04 18:44 
GeneralHTTP Post problems.... Pin
khchan1-Aug-04 18:32
khchan1-Aug-04 18:32 
hi,

when the client (ppc emulator) sends a multipart POST to the server (running on the same PC) , there are problems quite often.
sometimes it says "Unable to read data from the transport connection." and sometimes the server receives the HTTP header only. Confused | :confused:

here is my code segment,

WebRequest request;
Stream requestStream;

try
{
request = HttpWebRequest.Create(url);
request.ContentType = "multipart/form-data; boundary=" + boundaryString + "\r\n";
request.ContentLength = message.Length;
request.Method = "POST";
request.Timeout = 7000;

requestStream = request.GetRequestStream();
requestStream.Write(message, 0, message.Length);

// Close the Stream object.
requestStream.Close();

// 1. Get the Web Response Object from the request
WebResponse response = request.GetResponse();
// 2. Get the Stream Object from the response
Stream responseStream = response.GetResponseStream();
// 3. Create a stream reader and associate it with the stream object
StreamReader reader = new StreamReader (responseStream);
// 4. read the entire stream
results = reader.ReadToEnd();

reader.Close();
responseStream.Close();
}

catch(WebException webEx)
{
results = "An exception occurred relating to the use of " +
"a web response or request object. The specific exception was:" +
webEx.Message;
}

//Did some type of general exception occur?
catch(Exception ex)
{
results = "A general exception occurred while attempting to " +
"retrieve the requested page." +
ex.Message;
}

thanksSmile | :)
QuestionHow to query memory consumption of... Pin
devvvy1-Aug-04 18:10
devvvy1-Aug-04 18:10 
Questionhow to install my database project Pin
shdelpiero1-Aug-04 18:01
shdelpiero1-Aug-04 18:01 
AnswerRe: how to install my database project Pin
Norman-Timo1-Aug-04 19:50
Norman-Timo1-Aug-04 19:50 
AnswerRe: how to install my database project Pin
sreejith ss nair1-Aug-04 23:28
sreejith ss nair1-Aug-04 23:28 
GeneralCompiler/Interpreter Pin
softp_vc1-Aug-04 18:00
softp_vc1-Aug-04 18:00 
GeneralRe: Compiler/Interpreter Pin
Colin Angus Mackay1-Aug-04 20:24
Colin Angus Mackay1-Aug-04 20:24 
Generalinternal IP of ppc Pin
khchan1-Aug-04 16:50
khchan1-Aug-04 16:50 
GeneralRe: internal IP of ppc Pin
Dave Kreskowiak2-Aug-04 2:59
mveDave Kreskowiak2-Aug-04 2:59 
GeneralProgressBar on long processes Pin
Tim DuBois1-Aug-04 16:43
Tim DuBois1-Aug-04 16:43 
GeneralRe: ProgressBar on long processes Pin
Dave Kreskowiak2-Aug-04 3:10
mveDave Kreskowiak2-Aug-04 3:10 
GeneralProblems binding a dataset to a combobox Pin
Jefferys1-Aug-04 14:19
Jefferys1-Aug-04 14:19 
GeneralRe: Problems binding a dataset to a combobox Pin
mikker_1231-Aug-04 14:31
mikker_1231-Aug-04 14:31 
GeneralRe: Problems binding a dataset to a combobox Pin
softp_vc1-Aug-04 18:41
softp_vc1-Aug-04 18:41 
GeneralRe: Problems binding a dataset to a combobox Pin
Shailendra Rao1-Aug-04 18:49
Shailendra Rao1-Aug-04 18:49 
GeneralRe: Problems binding a dataset to a combobox Pin
Jefferys2-Aug-04 5:24
Jefferys2-Aug-04 5:24 
GeneralToolTip Control in pocket pc. Pin
memsharp1-Aug-04 5:28
memsharp1-Aug-04 5:28 
GeneralRe: ToolTip Control in pocket pc. Pin
Colin Angus Mackay1-Aug-04 11:09
Colin Angus Mackay1-Aug-04 11:09 

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.