I want to access a PHP script hosted on
dnsserver.icu via this proxy
184.108.40.206:8080 with curl.
The problem is that the Proxy server seems to do overwrite the HTTP 200 code with a 302 code making it impossible to reach the script.
curl -v dnsserver.icu gives the following output:
* Rebuilt URL to: dnsserver.icu/ * Trying 220.127.116.11... * TCP_NODELAY set * Connected to dnsserver.icu (18.104.22.168) port 80 (#0) > GET / HTTP/1.1 > Host: dnsserver.icu > User-Agent: curl/7.58.0 > Accept: */* > < HTTP/1.1 200 OK < Date: Wed, 15 Apr 2020 20:05:18 GMT < Server: Apache/2.4.29 (Ubuntu) < Content-Length: 31 < Content-Type: text/html; charset=UTF-8 < * Connection #0 to host dnsserver.icu left intact
curl -v -x 22.214.171.124:8080 dnsserver.icu gives the unexpected result of:
* Rebuilt URL to: dnsserver.icu/ * Trying 126.96.36.199... * TCP_NODELAY set * Connected to 188.8.131.52 (184.108.40.206) port 8080 (#0) > GET http://dnsserver.icu/ HTTP/1.1 > Host: dnsserver.icu > User-Agent: curl/7.58.0 > Accept: */* > Proxy-Connection: Keep-Alive > < HTTP/1.1 302 Found < Location: http://220.127.116.11 < Date: Wed, 15 Apr 2020 20:08:37 GMT < Connection: keep-alive < Transfer-Encoding: chunked < * Connection #0 to host 18.104.22.168 left intact
The address in the Location header is also changing sometimes.
I already experimented with different header configurations but I couldn't get it to work. When I log every call to the PHP script it doesn't look like the server is even reached by the proxy (no call logged). Futhermore the apache access log is empty.
Strangely this is not the case for all domains. I'm able to access e.g.
google.com or also less popular domains like
proxyjudge.us (but not the ip equivalent of 22.214.171.124) through the proxy.
I have no idea what the reason for this behaviour is. Is there any 'trick' in terms of header setting or apache configuration that makes it possible to also access
dnsserver.icu through this proxy? Something I havent tought of?
I appreciate any help.