Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
1.25/5 (4 votes)
See more:
C#
public void send(string uid, string password, string message, string no)
{
HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + uid + "&pwd=" + password + "&msg=" + message + "&phone=" + no + "&provider=way2sms");

HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
}
Posted
Updated 1-Dec-11 20:27pm
Comments
Sergey Alexandrovich Kryukov 2-Dec-11 2:31am    
Please challenge someone who can be challenged with this. We do different things. We can help you, if you really want, but you need to ask your question.
--SA
Syed Salman Raza Zaidi 2-Dec-11 2:31am    
This site is not for challenges, you can ask for help here, what you have done for converting this?Are you getting any error?
RAHUL77758 2-Dec-11 2:33am    
okkk you can help me to convert this code
Anuja Pawar Indore 2-Dec-11 2:41am    
If you really need help, then change the subject line

I would suggest refactoring rather than code conversion - every time - Write your code in PHP based on your end requirements not based on what someone else has written in a different language.
 
Share this answer
 
You can do everything apart from building the request URL using file_get_contents[^].

And you can build the URL using http_build_query[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900