Click here to Skip to main content
15,902,198 members
Home / Discussions / C#
   

C#

 
Questionabstract vs interface Pin
psamy26-Sep-06 23:17
psamy26-Sep-06 23:17 
AnswerRe: abstract vs interface Pin
J4amieC27-Sep-06 0:15
J4amieC27-Sep-06 0:15 
QuestionProblem with MdiParent when using command pattern Pin
beatles169226-Sep-06 22:54
beatles169226-Sep-06 22:54 
AnswerRe: Problem with MdiParent when using command pattern Pin
Nader Elshehabi27-Sep-06 1:11
Nader Elshehabi27-Sep-06 1:11 
GeneralRe: Problem with MdiParent when using command pattern Pin
beatles16922-Oct-06 1:45
beatles16922-Oct-06 1:45 
QuestionPost Request Pin
Support12326-Sep-06 22:44
Support12326-Sep-06 22:44 
AnswerRe: Post Request Pin
J4amieC26-Sep-06 23:22
J4amieC26-Sep-06 23:22 
QuestionRe: Post Request Pin
Support12326-Sep-06 23:41
Support12326-Sep-06 23:41 
Would this:

Salon.Library.SystemDefault sysdef = new SystemDefault();<br />
			sysdef.LoadData();<br />
			ASCIIEncoding encoding = new ASCIIEncoding();<br />
			string postData = "username=Whatever&password=BlahBlah&source_id=" + Convert.ToString(sysdef.ID) + "&message=" + Message + "&msisdn=" + CellNo;<br />
            byte[] data = encoding.GetBytes(postData);<br />
<br />
			//Prepare Web Request...<br />
			HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create("http://bulksms.2way.co.za:5567/eapi/submission/send_sms/2/2.0?");<br />
			myRequest.Method = "POST";<br />
			myRequest.ContentType = "application/x-www-form-urlencoded";<br />
			myRequest.ContentLength = data.Length;<br />
			Stream newStream = myRequest.GetRequestStream();<br />
<br />
			//Send the Data<br />
			newStream.Write(data,0,data.Length);<br />
			newStream.Close();


Am i doing this correctly? I saw this in an example on the net...

is this the same as the top part but the top part is the post part?

string Argu = "http://bulksms.2way.co.za:5567/eapi/submission/send_sms/2/2.0?username=Whatever&password=BlahBlah&source_id=" + Convert.ToString(sysdef.ID) +"&message=" + Convert.ToString(Message) + "&msisdn=" + Convert.ToString(CellNo);<br />
			HttpWebRequest Request;<br />
			StreamReader ResponseReader;<br />
			Request = ((HttpWebRequest)(WebRequest.Create(Argu)));<br />
			ResponseReader = new StreamReader(Request.GetResponse().GetResponseStream());


Thank you in advance...



"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison

QuestionGreat, now one more thing and then its perfect... Pin
Support12327-Sep-06 0:16
Support12327-Sep-06 0:16 
QuestionRichTextbox Pin
izakfick26-Sep-06 22:16
izakfick26-Sep-06 22:16 
AnswerRe: RichTextbox Pin
Nader Elshehabi27-Sep-06 1:18
Nader Elshehabi27-Sep-06 1:18 
QuestionHow to set windows default sound card devices in c#.NET Pin
YogeshRT26-Sep-06 22:12
YogeshRT26-Sep-06 22:12 
Questionassigning string to dataset Pin
saqib8226-Sep-06 21:49
saqib8226-Sep-06 21:49 
AnswerRe: assigning string to dataset Pin
_AK_26-Sep-06 23:16
_AK_26-Sep-06 23:16 
QuestionBulk Insertion to DB Pin
meeram39526-Sep-06 21:41
meeram39526-Sep-06 21:41 
Questionhow to read .resx file Pin
Tamimi - Code26-Sep-06 21:13
Tamimi - Code26-Sep-06 21:13 
AnswerRe: how to read .resx file Pin
Stefan Troschuetz26-Sep-06 21:26
Stefan Troschuetz26-Sep-06 21:26 
GeneralRe: how to read .resx file Pin
Tamimi - Code26-Sep-06 22:04
Tamimi - Code26-Sep-06 22:04 
QuestionTransparent Label Pin
morteza5726-Sep-06 21:11
morteza5726-Sep-06 21:11 
GeneralRe: Transparent Label Pin
Guffa26-Sep-06 21:34
Guffa26-Sep-06 21:34 
AnswerRe: Transparent Label Pin
Nader Elshehabi27-Sep-06 1:28
Nader Elshehabi27-Sep-06 1:28 
QuestionHow to host multiple channels in an exe ??? .NET Remoting [modified] Pin
Waqas Nasir26-Sep-06 21:06
Waqas Nasir26-Sep-06 21:06 
Questionreturning values from webservice Pin
saqib8226-Sep-06 20:41
saqib8226-Sep-06 20:41 
AnswerRe: returning values from webservice Pin
Stefan Troschuetz26-Sep-06 21:33
Stefan Troschuetz26-Sep-06 21:33 
QuestionRead items from list box Pin
eswarattaluri26-Sep-06 19:30
eswarattaluri26-Sep-06 19:30 

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.