Making a HTTP request to API possible with VB/ASP

2019-05-26 01:07发布

Is it possible to make 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?

1条回答
甜甜的少女心
2楼-- · 2019-05-26 01:30

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

查看更多
登录 后发表回答