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: server gave HTTP response to HTTPS client #135

Open
teamothyz opened this issue Oct 1, 2024 · 0 comments
Open

[Bug]: http: server gave HTTP response to HTTPS client #135

teamothyz opened this issue Oct 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@teamothyz
Copy link

TLS client version

v1.7.5

System information

Windows Server 2012

Issue description

I got the response failed to do request: Get "url": http: server gave HTTP response to HTTPS client. I also set InsecureSkipVerify = true in my C# code. Anyone how to allow HTTP response?
Please help!
Thank you!

Steps to reproduce / Code Sample

public TlsClient(TlsClientIdentifier tlsClientIdentifier,
int timeoutSeconds = 30,
bool followRedirects = true,
Dictionary<string, string>? headers = null,
Dictionary<string, string>? cookies = null,
string proxy = "")
{
Headers = headers ?? Headers;
Cookies = cookies ?? Cookies;

SessionID = Guid.NewGuid().ToString();
SessionPayload = new TlsRequestMessage
{
    TlsClientIdentifier = Constaints.TlsClientIdentifiersDictionary[tlsClientIdentifier],
    FollowRedirects = followRedirects,
    InsecureSkipVerify = true,
    IsByteRequest = false,
    ForceHttp1 = false,
    WithDebug = false,
    CatchPanics = false,
    WithRandomTLSExtensionOrder = true,
    SessionId = SessionID,
    TimeoutSeconds = timeoutSeconds,
    TimeoutMilliseconds = 0,
    CertificatePinningHosts = [],
    ProxyUrl = proxy,
    IsRotatingProxy = false,
    Headers = Headers,
    HeaderOrder = [.. Headers.Keys],
    RequestUrl = string.Empty,
    RequestMethod = string.Empty,
    RequestBody = string.Empty,
    WithDefaultCookieJar = false,
    WithoutCookieJar = false,
    RequestCookies = Cookies.ToTlsCookies()
};

}

@teamothyz teamothyz added the bug Something isn't working label Oct 1, 2024
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

1 participant