开发者

Making a HTTP request to API possible with VB/ASP classic?

Is it possible to 开发者_如何学JAVAmake requests to a Web API with ASP classic?

For example just something as simple as the Flickr API, or was this sort of thing not supported way back when?


It's quite possible:

Dim req
Set req = Server.CreateObject("MSXML2.ServerXMLHTTP")

req.open "GET", "http://blabla.com", False
req.send()

Response.Write(req.responseText)

You should be able to find examples of how to parse XML and JSON here on stackoverflow.com

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜