2021-10-06 02:33 PM
I have built an HTTP webserver on my STM32F407 custom board. I have multiple pages working. One of the pages lets the user select a file using the browser and upload it to the webserver. All of that is working. My issue is that when the upload completes I can't get the web browser to redirect to my home page. If I send it the home page it correctly displays it but the URL remains "upload.cgi". As far as I can tell from reading lots of google search results the following should work, but after the upload the browser keeps spinning the favicon. Any ideas?
HTTP/1.1 303 See Other
Location: index.html
Mike.
Solved! Go to Solution.
2021-10-07 09:42 AM
OK, I literally thought of the answer while in the shower this morning... I wasn't closing the connection after sending the 303. Now it works!
Mike.
2021-10-07 09:42 AM
OK, I literally thought of the answer while in the shower this morning... I wasn't closing the connection after sending the 303. Now it works!
Mike.
2021-10-07 09:50 AM
"A new survey contributed to by cognitive psychologist Scott Barry Kaufman Ph.D. and commissioned by shows that 72 percent of people have experienced new ideas in the shower. In fact, 14 percent take showers for the sole purpose of generating creative thoughts and insights."
https://www.kbbonline.com/news/business/do-the-brightest-ideas-begin-in-the-shower/