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]: If I use withDebug, the query passes. #80

Open
vodves-vodves opened this issue Oct 13, 2023 · 1 comment
Open

[Bug]: If I use withDebug, the query passes. #80

vodves-vodves opened this issue Oct 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@vodves-vodves
Copy link

TLS client version

v1.6.1

System information

win 10

Issue description

If I use withDebug, my request goes through. if I do without it, my request gets an error from cloudflare. I don't understand why this is happening)

Steps to reproduce / Code Sample

my options

options = []tls_client.HttpClientOption{
		tls_client.WithTimeoutSeconds(45),
		tls_client.WithClientProfile(profiles.Chrome_117),
		tls_client.WithRandomTLSExtensionOrder(),
		tls_client.WithDebug(),
		tls_client.WithProxyUrl(proxy), 
}

response without Debug:

<html>              
<head><title>400 Bad Request</title></head>                      
<body>                                                           
<center><h1>400 Bad Request</h1></center>                        
<hr><center>cloudflare</center>                                  
</body>                                                          
</html>                                                          

response with Debug (I replaced the personal information):

request body payload: {"examplepayload"}
raw request bytes sent over wire: 1746 (1 kb)
headers on request:
map[Header-Order::[example headers]
cookies on request:
[]
headers on response:
map[example headers]
cookies on response:
[example cookies]
requested example url : status 201
response body payload: {"succes example respinse"}
raw response bytes received over wire: 543 (0 kb)
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload: 
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload: 
net/http: HTTP/1.x transport connection broken: http: ContentLength=62 with Body length 0
                                                      
@vodves-vodves vodves-vodves added the bug Something isn't working label Oct 13, 2023
@bogdanfinn
Copy link
Owner

@vodves-vodves can you please provide additional information on which site you are requesting and how you assemble your request (header, body, method, etc.)

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