使用 VB/ASP classic 可以向 API 发出 HTTP 请求吗?

发布于 2024-09-02 14:36:51 字数 90 浏览 1 评论 0原文

是否可以使用 ASP classic 向 Web API 发出请求?

例如,像 Flickr API 这样简单的东西,或者这种东西很久以前就不支持了?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

失而复得 2024-09-09 14:36:51

这是很有可能的:

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

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

Response.Write(req.responseText)

您应该能够在 stackoverflow.com 上找到如何解析 XML 和 JSON 的示例

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文