HTTPS requests in most languages:

Import a couple of libraries, you may need to install a few as well. It's possible that you will need to initialize and set up the socket. Be sure to specify SSL settings. Create the connection, provide it a URL, and attempt the connection. Read the response, usually in chunks. You may need to manually create a buffer of fixed size, depending on if the language has buffer helper classes or not. You will probably need to convert the input stream response to a string to do anything with it. Close the connection and clean up any buffers used.

HTTPS requests in Python:

import urllib

  • 2
    Ever heard of go? 😏
  • 3
    Https requests in ocaml: here, this functor is literally a fucking https request

    Also dont compare python to like c and java
  • 1
    In Rust this is just a macro
  • 0
    @Vake93 This rant is pretty heavily influenced by the difference between c and the windows API, and python with the standard library.
  • 2
    how about python requests?
    import requests
  • 2
    file_get_contents(“insert URL”);

    PHP the right way:
    Use cURL
Add Comment