<%@page language="C#" %>
<%@import namespace="System.Net" %>
<%
/*** sms:key v1.0.6 ***/
string key = "243763";
WebClient client = new WebClient();
client.Headers.Add("user-agent", "smscoin_key_1.0.6");
byte[] response = client.DownloadData("http://key.smscoin.com/key/?s_key=" + key
+ "&s_pair=" + (Request.Params["s_pair"] != null
? Server.UrlEncode(Request.Params["s_pair"].Length > 10
? Request.Params["s_pair"].Substring(0, 10)
: Request.Params["s_pair"]) : "")
+ "&s_language=" + (Request.Params["s_language"] != null
? Server.UrlEncode(Request.Params["s_language"].Length > 10
? Request.Params["s_language"].Substring(0, 10)
: Request.Params["s_language"]) : "")
+ "&s_ip=" + Request.Params["REMOTE_ADDR"]
+ "&s_url=" + Request.Params["SERVER_NAME"]
+ Server.HtmlEncode(Server.UrlEncode(Request.Params["URL"]
+ "?" + Request.Params["QUERY_STRING"])));
if(Encoding.ASCII.GetString(response, 0, 4) != "true") {
Response.BinaryWrite(response);
Response.End();
}
/*** sms:key end ***/
%>