Konu: c# kodunu dönüştürme
c# bilen arkadaşlar aşağıdaki kodu foxpro ya çevirseniz
SmsParams sms = SmsParams;
const string apino = "5";
string user = sms.Username;
string pass = sms.Password;
string baslik = sms.Originator;/
const string islem = "kayit";
string postNumaralar = "";
foreach (var numara in sms.SmsContainerList)
{
postNumaralar += "numaralar[]=" + numara.TelNo + "&";
}
postNumaralar = postNumaralar.Remove(postNumaralar.Length-1);
string postMesajlar = "";
foreach (var mesajim in sms.SmsContainerList)
{
postMesajlar += "mesaj[]=" + mesajim.Mesaj + "&";
}
postMesajlar = postMesajlar.Remove(postMesajlar.Length-1);
var req = (HttpWebRequest)WebRequest.Create("http://eracell.com.tr/eracellapiV2/test/yunus.php");//("http://eraecell.com.tr/kurecellapiV2/api-center/index.php");////
req.Method = "POST";
req.ContentType = "application/x-www-form-urlencoded";
string strNewValue = req + "&apiNo=" + apino + "&user=" + user + "&pass=" + pass + "&" + postNumaralar +
"&" + postMesajlar + "&baslik=" + baslik + "&islem=" + islem;
req.ContentLength = strNewValue.Length;
var stOut = new StreamWriter(req.GetRequestStream(), Encoding.ASCII);
stOut.Write(strNewValue);
stOut.Close();
var stIn = new StreamReader(req.GetResponse().GetResponseStream());
string strResponse = stIn.ReadToEnd();
stIn.Close();
MessageBox.Show(strResponse);