登录

php header问题

通过curl返回的header信息怎么处理成关联数组,数据如下;

HTTP/1.1 200 OK

Server: nginx

Date: Mon, 17 Oct 2022 10:54:43 GMT

Content-Type: application/json; charset=utf-8

Content-Length: 2168

Connection: keep-alive

Keep-Alive: timeout=8

Cache-Control: no-cache, must-revalidate

X-Content-Type-Options: nosniff

Request-ID: 08F3E8****0610E80618A1****A306209C2B28F5E205-0

Content-Language: zh-CN

Wechatpay-Nonce: a47a9c64de60****07eb889578dcf82c

Wechatpay-Signature: sign

Wechatpay-Timestamp: 1666004083

Wechatpay-Serial: 6D64345352D****44D12854B73****F1157FAC6E

Wechatpay-Signature-Type: WECHATPAY2-SHA256-RSA2048

懂的麻烦帮我一下,谢谢了

# PHP
宇轩宇轩106 天前254 次浏览

全部回复(0) 我要回复

暂无回复
  • 取消回复发送