来源:2-3 用cURL调用WebService获取天气信息

PeterTu

2014-10-06 13:04

代码URL

路径中的这个地址“/WebServices/WeatherWebService.asmx/getWeatherbyCityName”

是根据什么得到的。

网站的上POST的请求地址为:“

POST /WebServices/WeatherWS.asmx/getWeather HTTP/1.1
Host: www.webxml.com.cn
Content-Type: application/x-www-form-urlencoded
Content-Length: lengththeCityCode=string&theUserID=string

我用的是PHP扩展做的,

按照课程的代码输入完成后浏览器显示“未将对象引用设置到对象的实例


写回答 关注

2回答

  • 周末_1991
    2015-06-15 17:30:37

    http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?op=getWeatherbyCityName

  • 小鱼典典
    2014-10-08 18:36:44

    是付费的原因么

PHP中的数据传输神器cURL

cURL就是这样的利器,可以帮助大家操作各种网络资源

34285 学习 · 218 问题

查看课程

相似问题

回答 2

回答 8

回答 3

回答 3

回答 1