Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

For websites using HTTPS, are files uploaded via POST encrypted?

I'm using the official Flask tutorial for learning how to upload files to a web server and I noticed the use of <input type=file>. I did some research as to whether data submitted via POST is encrypted in HTTPS and it appears that is the case. Are files uploaded with <input type=file> included?


2 Answers

When you use https, the following parts are encrypted :

  • The type of the request ( GET, POST, ... )
  • The URI of the request (the path and the parameters)
  • The headers of the request (cookies, ...)
  • The body of the request ( POST parameters, files upload... )
  • The headers of the answer
  • The body of the answer

What is not encrypted :

  • The IP and the port used by the client and the server
  • The full name of the domain (Because of SNI)
like image 82
Tom Avatar answered Apr 29 '26 06:04

Tom


Yes. The SSL/TLS encryption encryption encrypts the connection at a lower level -- everything sent through the "pipe" is encrypted.

like image 36
John Hascall Avatar answered Apr 29 '26 08:04

John Hascall



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!