title: Check/force the encryption of a curl connection
body: <p>I programmed a simple PHP webpage hosted locally on my machine (through XAMPP) that sends out a curl request in order to get data from a webshop API (e.g. to get the data for a specific order).</p>
  <p>Now I want to check/make sure if the communication taking place via curl uses TLS (HTTPS). According to curl documentation, this should be the case if the endpoint URL for the curl request contains HTTPS.</p>
  <p>Is it possible to do that from within the development tools from the browser (currently I'm using Firefox, but I don't mind switching)? First I thought it would be possible via the network analysis tab but of course, this only shows me the connections between the browser and my local server, not between the server and the shop (what curl does in the background).</p>
  <p>What would be the best way to approach this without drawing the big gun (Wireshark)? And as a possible follow-up question: using HTTP1.1, is it possible to force curl to use TLS and to refuse a connection if the API server (for whatever reason) tries to refer to an insecure connection.</p>
  <p>Not sure if this is the best site for this type of question if it's not, please feel free to refer me.</p>