golang net/http request issue (adult content related)
Budget: €8 – €30 EUR
i make a request to a website to download a file (called: "URL") using a proxy.
i do this request to "URL" with golang net/http client and the request failed
i do this request to "URL" with curl (parameters... -> same setting as with golang net/http) and the request is successful.
the request to "URL" without a proxy and golang net/http client is successful (same like curl is successful)
if i use the proxy again golang net/http fails but curl works.
curl command line parameters define exactly the same as golang net/http client does. there is not different in Accept , Accept-Language, Referer, Origins, Proxy ect. all is the same
Only there is obviously some difference how golang net/http client connect the proxy or maybe its a tls thing.
The server of "URL" gives for golang net/http using the proxy HTTP 403 Forbidden. Curl receives a HTTP 200.
Any idea what the problem might be and are you able to fix it?
i do this request to "URL" with golang net/http client and the request failed
i do this request to "URL" with curl (parameters... -> same setting as with golang net/http) and the request is successful.
the request to "URL" without a proxy and golang net/http client is successful (same like curl is successful)
if i use the proxy again golang net/http fails but curl works.
curl command line parameters define exactly the same as golang net/http client does. there is not different in Accept , Accept-Language, Referer, Origins, Proxy ect. all is the same
Only there is obviously some difference how golang net/http client connect the proxy or maybe its a tls thing.
The server of "URL" gives for golang net/http using the proxy HTTP 403 Forbidden. Curl receives a HTTP 200.
Any idea what the problem might be and are you able to fix it?