Cache-Control: no-cache, no-store Connection: close Date: Fri, 26 Mar 2021 02:11:16 GMT Pragma: no-cache Server: nginx Vary: Accept-Encoding Content-Type: application/json Expires: 0 Client-Date: Fri, 26 Mar 2021 02:11:16 GMT Client-Peer: 10.10.1.32:8080 Client-Response-Num: 1 Client-Transfer-Encoding: chunked Expect-Ct: report-uri="https://org.extract.net", max-age=0 Link: ; rel="self" Link: ; rel="next" #### use LWP; use LWP::UserAgent; $response1 = $response->headers_as_string; print "$response1\n"; #### $linkheader = $response1=~m/Link/; print "$linkheader\n";