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

[Bug]: HTTP/1.x transport connection broken: malformed MIME header line #150

Open
lison666 opened this issue Dec 13, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@lison666
Copy link

TLS client version

v1.7.8

System information

Window10

Issue description

When accessing the website, the "malformed MIME header line" error occurred. It is hoped that the incorrect headers can be filtered out or the headers can be directly returned instead of reporting errors, and then let the caller handle it later.

Steps to reproduce / Code Sample

{"id":"8bdbd1ee-691b-4feb-8fa9-5e8a398dd6d0","body":"failed to do request: Get "https://ep.rizhaosteel.com\": net/http: HTTP/1.x transport connection broken: malformed MIME header line: Strict鈥怲ransport鈥怱ecurity: max鈥恆ge=63072000","cookies":null,"headers":null,"sessionId":"487ede6d-ad0d-4cae-98e0-2bbbcd5b279a","status":0,"target":"","usedProtocol":""}

@lison666 lison666 added the bug Something isn't working label Dec 13, 2024
@bogdanfinn
Copy link
Owner

@lison666 could you also provide the request you are doing with all informaton? otherwise its hard to reproduce your issue.

@lison666
Copy link
Author

image
TLSSession tLSSession= new TLSSession();
var reuslt= tLSSession.Get("https://ep.rizhaosteel.com",new Dictionary<string, string>(new[] {new KeyValuePair<string,string> ("user-agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36") }));
Use a C# example. With the TtlClient version 1.7.10, make an access to the URL https://ep.rizhaosteel.com/, and then the following content will be returned in the body:failed to do request: Get "https://ep.rizhaosteel.com": net/http: HTTP/1.x transport connection broken: malformed MIME header line: Strict鈥怲ransport鈥怱ecurity: max鈥恆ge=63072000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants