Skip to content

Instantly share code, notes, and snippets.

@kiang
Created February 27, 2025 09:40
Show Gist options
  • Save kiang/b9cfcd17b3156fe5e50c9a8c224c3976 to your computer and use it in GitHub Desktop.
Save kiang/b9cfcd17b3156fe5e50c9a8c224c3976 to your computer and use it in GitHub Desktop.
get_file.sh
curl 'https://wwwq.moex.gov.tw/exam/wHandExamQandA_File.ashx?t=Q&code=101010&c=301&s=22&q=1' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
-H 'Accept-Language: zh-TW,zh;q=0.9,en-US;q=0.8,en;q=0.7' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Pragma: no-cache' \
-H 'Sec-Fetch-Dest: document' \
-H 'Sec-Fetch-Mode: navigate' \
-H 'Sec-Fetch-Site: none' \
-H 'Sec-Fetch-User: ?1' \
-H 'Upgrade-Insecure-Requests: 1' \
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36' \
-H 'sec-ch-ua: "Not(A:Brand";v="99", "Google Chrome";v="133", "Chromium";v="133"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Linux"' > test.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment