This is a discussion on TO SEND Text message or URL through Clickatell within the ASP and ASP.NET Programming forums, part of the Web Development category; WebClient wbcRingtone = new WebClient(); // Add a user agent header in case the requested URI contains a query. // Offshore Software Development ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| WebClient wbcRingtone = new WebClient(); // Add a user agent header in case the requested URI contains a query. // Offshore Software Development Company India, Software Development India wbcRingtone.Headers.Add("user-agent","Mozilla/4.0(compatible;MSIE 6.0;Windows NT 5.2; .NET CLR 1.0.3705 ");wbcRingtone.QueryString.Add("user","xxxxxxxx"); wbcRingtone.QueryString.Add("password","xxxxxxxx") ; wbcRingtone.QueryString.Add("api_id", "xxxxxxxxxx"); //wbcRingtone.QueryString.Add("msg_type", "SMS_NOKIA_RTTL"); wbcRingtone.QueryString.Add("to", cellNo); ////wbcRingtone.QueryString.Add("text", "Flintstone:d=4,o=5,b=200:g#,c#,8p,c#6,8a#,g#,c#,8 p,g#,8f#,8f,8f,8f#,8g#,c#,d#,2f,2p,g#,c#,8p,c#6,8a #,g#,c#,8p,g#,8f#,8f,8f,8f#,8g#,c#,d#,2c#"); wbcRingtone.QueryString.Add("from", "xxxxxxxxx"); wbcRingtone.QueryString.Add("mms_subject", "xxxxxxxxx"); wbcRingtone.QueryString.Add("mms_class", "xxxxxx"); wbcRingtone.QueryString.Add("mms_expire", "xxxxxxx"); wbcRingtone.QueryString.Add("mms_from", "xxxxxxxxx"); wbcRingtone.QueryString.Add("mms_url", "http://www.some.com/folder/mms.mms"); //string baseURL = "http://api.clickatell.com/http/sendmsg"; string baseURL = "http://api.clickatell.com/mms/ind_push.php"; Stream data = wbcRingtone.OpenRead(baseURL); StreamReader reader = new StreamReader(data); string s = reader.ReadToEnd(); data.Close(); reader.Close(); string queryURL = GetQueryForMMS(s); return queryURL; Software Development India |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/asp-asp-net-programming/1616-send-text-message-url-through-clickatell.html | |||
| Posted By | For | Type | Date |
| ASP and ASP.NET Programming [Archive] - DiscussWeb IT Community - Technical Support and Technology Discussions | This thread | Refback | 03-14-2008 08:11 PM |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Warning message | Vani Sri | PHP Programming | 3 | 01-08-2008 05:43 AM |
| Warning message | Vani Sri | PHP Programming | 6 | 11-28-2007 10:47 PM |
| How do I check that text entered in a text form field is an integer? | itbarota | HTML, CSS and Javascript Coding Techniques | 2 | 10-26-2007 12:25 AM |
| Why do I get Error message "Unable to Start Debugging" Error Message? | a.deeban | ASP and ASP.NET Programming | 5 | 09-25-2007 12:22 AM |
| How to Encode a text and Decode it to get the original text using c# .Net? | Archer | C# Programming | 1 | 07-21-2007 01:10 AM |