gpt4 book ai didi

http - 在 Pharo 中发出 HTTP 请求并获取响应 header

转载 作者:可可西里 更新时间:2023-11-01 15:15:51 26 4
gpt4 key购买 nike

如何发出 HTTP 请求并获取响应内容和响应 header ?

最佳答案

或使用新的 Zinc framework ,类似于:

| response content headers |

response := ZnClient new
url: 'http://stackoverflow.com';
get;
response.

content := response contents.
headers := response headers.

关于http - 在 Pharo 中发出 HTTP 请求并获取响应 header ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3543947/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com