August 2019
Beginner to intermediate
798 pages
17h 2m
English
Nowadays, most web sites work using HTTPS instead of HTTP. Therefore, in this subsection, you will learn how to create an HTTPS client. The name of the program will be httpsClient.go and it is going to be presented in three parts.
The first part of httpsClient.go contains the following code:
package main
import (
"crypto/tls"
"fmt"
"io/ioutil"
"net/http"
"os"
"path/filepath"
"strings"
)
The most important package is crypto/tls, which, according to its documentation, partially implements Transport Layer Security (TLS ...
Read now
Unlock full access