On the data processing of curl header

after curl requests a website, get his header information as follows
HTTP/1.1 302 Found Cache-Control: private Content-Type: text/html; charset=utf-8 Location: ide.com.cn" rel=" nofollow noreferrer "> http://www.puritanspride.com.cn Server: Microsoft-IIS/7.5 Set-Cookie: ASP.NET_SessionId=pdfxxpyuhguhzndymx4zbzyn; path=/; HttpOnly SAMEORIGIN Date: Fri, Dec 2018 03:17:23 GMT Content-Length: 21009 Referrer-Policy: no-referrer-when-downgrade Strict-Transport-Security: max-age=31536000; includeSubDomains ContentTypeML Options: nosniff Xmuri XSSUM Protection: 1; mode=block Vary: Accept-Encoding

: HttpOnly Xmuri XspNetMvcMube version: 4.0.30319 Xmure by: XMui 04 Xmurf options: GMT Content-Length: 07 Dec 2018 03:17:23 AspNetMvcmure OptionsAspNetNetMvcluoOptionsAspNet NetMvcMotel OptionsXMuthAspNetNetMvcMuoVersion5.2

there may be more than one Location in the information. If you want to take the value of the last Location, how should you write such a regular match?

Php
Jan.17,2022

  get_headers  

or use

directly
curl_getinfo ()
find relevant useful information
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e46c48-44bd0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e46c48-44bd0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?