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

httpx.RemoteProtocolError: illegal header line: bytearray(b'get-ban-to-cache-result/forum.php: userdata not support') #1561

Closed
zhs509 opened this issue Apr 8, 2021 · 1 comment

Comments

@zhs509
Copy link

zhs509 commented Apr 8, 2021

import httpx
from fake_useragent import UserAgent
headers = {'user-agent':UserAgent().random}
url = 'https://club.huawei.com/thread-26829078-1-1.html'
resp = httpx.get(url=url,headers=headers)
print(resp.text)

environment:win10 x64,Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit (Intel)] on win32

using httpx return httpx.RemoteProtocolError,while using requests return ok.

20210408150309

@tomchristie
Copy link
Member

Duplicate of #1363

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