>put file on disk >get file from remote host >send properly-formed request to host >establish TLS connection (if necessary) >connect the socket >generate appropriate sockaddr_in structure >call getaddrinfo >initialize hints structures >create socket >create fd >parse URI [done]