How to read the response effective URL in Guzzle ~6.0

后端 未结 6 1975
我寻月下人不归
我寻月下人不归 2020-12-24 01:26

I\'ve been searching for about 2 hours and I can\'t figure it out how to read the final response uri.

In previous versions of PHP Guzzle you just call

6条回答
  •  感情败类
    2020-12-24 02:12

    I'm not an expert in the subject but, from what I understand, the effective url is not something that is defined in a general HTTP message. I think is is something related to Curl and since Guzzle can use any HTTP handler to send requests (see here), the information is not necessarily present.

提交回复
热议问题