Search squid archive

Squid proxy will forward message with 'alternating host header' but logs another?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can i stop squid from 'repairing' host headers?
I've been all over this for hours, I can only lead this back to this change in 1999 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=50292

I wan't this sample code to do trough squid what it would do without a proxy at all and i want squid to log the host header set by the sample code.

```
import requests

proxies = {'http': 'http://10.0.0.4:8080',}
headers = {"Host":"someevilhost.appspot.com","Tester":"xychix",}

s = requests.Session()
#### proxy is set OFF
s.proxies = proxies
r = s.get('http://www.google.com/',headers=headers)

print(r.status_code)
print(r.text[:80])
```
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux