Click here to Skip to main content
15,850,265 members
Home / Discussions / C#
   

C#

 
GeneralRe: Logging/Debug Output/Verbose Mode Pin
Dave Kreskowiak28-Apr-04 2:48
mveDave Kreskowiak28-Apr-04 2:48 
GeneralRe: Logging/Debug Output/Verbose Mode Pin
Heath Stewart28-Apr-04 4:28
protectorHeath Stewart28-Apr-04 4:28 
GeneralRe: Logging/Debug Output/Verbose Mode Pin
Heath Stewart28-Apr-04 4:34
protectorHeath Stewart28-Apr-04 4:34 
QuestionHow to send request to php page using POST method Pin
Alex Getman27-Apr-04 23:58
Alex Getman27-Apr-04 23:58 
AnswerRe: How to send request to php page using POST method Pin
Heath Stewart28-Apr-04 4:26
protectorHeath Stewart28-Apr-04 4:26 
GeneralRe: How to send request to php page using POST method Pin
Alex Getman28-Apr-04 6:04
Alex Getman28-Apr-04 6:04 
GeneralRe: How to send request to php page using POST method Pin
Heath Stewart28-Apr-04 11:23
protectorHeath Stewart28-Apr-04 11:23 
GeneralRe: How to send request to php page using POST method Pin
Alex Getman28-Apr-04 21:25
Alex Getman28-Apr-04 21:25 
I have commented last line of the code and all works fine for now:
HttpWebRequest request = (HttpWebRequest) WebRequest.Create("http://www.umc.ua/misc/sendsms.php");
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
string postData = "network1=UMC&Phone1=5918658&Message=We did it! &sender_name=sn";
byte[] buffer = Encoding.ASCII.GetBytes(postData);
request.ContentLength = buffer.Length;
Stream s = request.GetRequestStream();
s.Write(buffer, 0, buffer.Length);
s.Flush();
s.Close();
//HttpWebResponse response = (HttpWebResponse)request.GetResponse();
//response.Close();

Could you explain me please for what I need this line-
HttpWebResponse response = (HttpWebResponse)request.GetResponse();


www.xedom.com

GeneralRe: How to send request to php page using POST method Pin
Heath Stewart29-Apr-04 4:06
protectorHeath Stewart29-Apr-04 4:06 
GeneralOut of Process Server in C# Pin
Colin Herkes27-Apr-04 22:05
Colin Herkes27-Apr-04 22:05 
GeneralRe: Out of Process Server in C# Pin
Heath Stewart28-Apr-04 4:17
protectorHeath Stewart28-Apr-04 4:17 
GeneralRe: Out of Process Server in C# Pin
Colin Herkes29-Apr-04 22:24
Colin Herkes29-Apr-04 22:24 
GeneralRe: Out of Process Server in C# Pin
Heath Stewart30-Apr-04 3:57
protectorHeath Stewart30-Apr-04 3:57 
GeneralRe: Out of Process Server in C# Pin
Colin Herkes3-May-04 1:19
Colin Herkes3-May-04 1:19 
GeneralRe: Out of Process Server in C# Pin
Heath Stewart3-May-04 2:49
protectorHeath Stewart3-May-04 2:49 
GeneralRe: Out of Process Server in C# Pin
Colin Herkes3-May-04 3:54
Colin Herkes3-May-04 3:54 
GeneralRe: Out of Process Server in C# Pin
Heath Stewart3-May-04 4:18
protectorHeath Stewart3-May-04 4:18 
GeneralRe: Out of Process Server in C# Pin
leppie28-Apr-04 9:39
leppie28-Apr-04 9:39 
GeneralRe: Out of Process Server in C# Pin
Colin Herkes29-Apr-04 22:26
Colin Herkes29-Apr-04 22:26 
GeneralRe: Out of Process Server in C# Pin
leppie30-Apr-04 7:55
leppie30-Apr-04 7:55 
GeneralDirect X Pin
mookeroo27-Apr-04 16:37
mookeroo27-Apr-04 16:37 
GeneralRe: Direct X Pin
Heath Stewart27-Apr-04 18:11
protectorHeath Stewart27-Apr-04 18:11 
GeneralCommenting for comment web page Pin
Jon G27-Apr-04 14:14
Jon G27-Apr-04 14:14 
GeneralRe: Commenting for comment web page Pin
Jeff Varszegi27-Apr-04 15:57
professionalJeff Varszegi27-Apr-04 15:57 
GeneralRe: Commenting for comment web page Pin
Jon G28-Apr-04 1:50
Jon G28-Apr-04 1:50 

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.