On Tue, 04 Apr 2017 21:06:23 -0700, iMath wrote: > For those want to help, I also posted The question here > http://stackoverflow.com/questions/43185804/using-httphandler-cause- django-server-side-shows-http-400-and-invalid-http-host > > > I am using HTTPHandler to send logging messages to a Django Web server > with The following code,
Are you sure you posted the code you are actually using? Because the error message suggests a difference. You have: > _TARGET = '192.168.8.100:8000' but the error message says: > Invalid HTTP_HOST header: '192.168.8.100:8000,192.168.8.100'. '192.168.8.100:8000,192.168.8.100' is not the same address you say you are using. (And it is not a valid address, just as the error message states.) I might be entirely wrong here, I'm not a Django expert, but it sure looks to me like a simple mistake in your code. It would be good if you could confirm that's not the case before people spend time trying to debug something in code they can't see. -- Steve -- https://mail.python.org/mailman/listinfo/python-list