17

Using the Go HTTP Client

Overview

This chapter will equip you to use the Go HTTP Client to talk to other systems over the Internet.

You will start by learning to use the HTTP client to get data from a web server and to send data to a web server. By the end of the chapter, you will be able to upload a file to a web server and experiment with a custom Go HTTP Client to interact with web servers.

Technical requirements

For this chapter, you’ll require Go version 1.21 or higher. The code for this chapter can be found at: https://github.com/PacktPublishing/Go-Programming-From-Beginner-to-Professional-Second-Edition-/tree/main/Chapter17.

Introduction

In the previous chapter, you looked at web APIs with REST. You learned what REST is, how to think ...

Get Go Programming - From Beginner to Professional - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.