HF RL Explorer

Task: Set Custom Headers in HTTP GET Request in Go

Task: Set Custom Headers in HTTP GET Request in Go: a task in Terminal-Lego-15k (Harbor dataset). In Go, when making HTTP requests using the net/http package, you often need to set custom headers (such as Authorization , User-Agent , Content-Type , etc.). Your task is to write a Go program that…

The task

In Go, when making HTTP requests using the `net/http` package, you often need to set custom headers (such as `Authorization`, `User-Agent`, `Content-Type`, etc.). Your task is to write a Go program that demonstrates how to properly set custom headers in an HTTP GET request.

Part of PrimeIntellect/Terminal-Lego-15k.