Third party web request not working RRS feed

  • Question

  • User-1492707038 posted

    I am consuming a PHP website to send SMS; however, the SMS is not sent when it is hosted in azure.

    This is working fine when I run the solution locally(localhost).


    string url = string.Format("https://mirza007cool.000webhostapp.com/sendsms.php?uid={0}&pwd={1}&phone={2}&msg={3}", userId, password, phone, message);
    WebRequest wr = WebRequest.Create(url);
    wr.Timeout = 30000;
    HttpWebResponse response = (HttpWebResponse)wr.GetResponse();
    if (response.StatusCode == HttpStatusCode.OK)
       //success message
       //error message

    Monday, February 20, 2017 10:38 AM

All replies