Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux下载如何添加使用UA? #64

Open
qadan72 opened this issue Jan 12, 2025 · 1 comment
Open

Linux下载如何添加使用UA? #64

qadan72 opened this issue Jan 12, 2025 · 1 comment

Comments

@qadan72
Copy link

qadan72 commented Jan 12, 2025

m3u8d curl xxx -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"

这样使用报错,如何添加请求头UA

@orestonce
Copy link
Owner

可以啊

./m3u8d_linux_x64_cli-v1.25.5 curl -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.38" http://127.0.0.1:1234

# nc -l 1234
GET / HTTP/1.1
Host: 127.0.0.1:1234
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.38
Accept: */*
Accept-Encoding: *
Accept-Language: zh-CN,zh;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5
Connection: keep-alive
Referer: http://127.0.0.1:1234

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants