我创建了一个webhook 订单付款并提供了网址 http://example.com/shopifydata.htm
现在我想获得shopify发布的所有数据,用于订购C#
我有以下代码
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create("http://example.com/shopifydata.htm");
myRequest.Method = "Get";
//if needs credential you can use myRequest.Credentials
using (HttpWebResponse myResponse = (HttpWebResponse)myRequest.GetResponse())
{
StreamReader mysr = new StreamReader(myResponse.GetResponseStream(), Encoding.GetEncoding("GB2312"));
//get the string content you can see what it is
string responseResult = mysr.ReadToEnd();
}
但我无法得到任何东西
当我使用 http://requestb.in/ 时,我能够获取数据。但是我的网站页面无法取得成功
请指教 感谢