Several years ago I wrote a program to download quotes from the web, which worked well until the sites all changed from http to https format. So I have not looked at the program for about 5 years. I decided to revisit the code and try using ssl to rewrite the app. Before I started, I ran the old program on my website (which is http) to get a feel for how the program ran again, but when I did, it no longer worked. Below is the connection request, and response:
GET / HTTP/1.1
User-Agent: Comitor 7.0
HTTP/1.1 400 Bad Request
date= Wed, 26 May 2021 19:02:57 GMT
content-type= text/html; charset=iso-8859-1
Your browser sent a request that this server could not understand.
Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request.
Comidor 7.0 was the name of my app, so I thought maybe the server didn’t like that. I changed the user agent the emulate Firefox, again which worked before, but again got the same message. It simply won’t connect. I used a sniffer packet to make sure my requests were exactly the same as Firefox, and they are, but no connection. Also made sure the app was using port 80, and it was. The last little morsel of error seems to indicate it got to the site? So I am stumped? Obviously can’t work on an https upgrade if I can’t get the old http app to work. Anyone have any ideas? It all worked perfectly when I quit using it 5 years ago.