url=$(aws lambda get-function --function-name my_func --query 'Code.Location' --output text)
wget url을 실행하면 다음이 표시됩니다.
--2022-11-21 11:09:03-- http://url/
Resolving url (url)... 23.217.x.x, 23.202.x.x
Connecting to url (url)|23.217.138.x|:x... connected.
HTTP request sent, awaiting response... 200 OK
Length: 355 [text/html]
Saving to: ‘index.html.2’
index.html.2 100%[=============================================================================================>] 355 --.-KB/s in 0s
2022-11-21 11:09:04 (14.1 MB/s) - ‘index.html.2’ saved [355/355]
이 HTML 파일은 몇 KB에 불과합니다. 크롬에서 URL을 다운로드할 때 올바른 속도는 10mbs입니다.
무엇이 잘못되었나요?
HTML(kbs) 파일의 내용입니다.
<html>
<head>
<meta http-equiv="refresh" content="0;url=http://searchguide.level3.com/search/?q=http://url%2F%26akaCid%3Daaaaaaaa%26t%3D0%26bc%3D"/>
</head>
<body>
<script type="text/javascript">window.location="http://searchguide.level3.com/search/?q="+escape(window.location)+"&r="+escape(document.referrer)+"&t=0&akaCid=aaaaaaaa&bc=";</script>
</body>
</html>