[23] Results

Golang : Get curl -I or head data from URL example

golang HEAD curl response-from-request

Problem :

Need a way to make a HEAD request from URL and extract a few fields of header data….... read more


Golang : Set or add headers for many or different handlers

golang set-headers http-response-writer http-request

Problem :

In Golang, setting headers can be done easily with the Set() method.

At the moment, you are setting….... read more


Golang : Convert HTTP Response body to string

golang string convert http-response

Problem :

While writing tutorial on how to interface with PayPal's IPN(Instant Payment Notification), I need to convert….... read more


Golang : Text file editor (accept input from screen and save to file)

golang input-from-screen file

The images of me learning WordStar as kid somehow appeared in my dream yesterday. So, today I'm going to write….... read more


Golang : How to log each HTTP request to your web server?

golang log-http-request save-log-to-file request-logger

Problem:

You want to log each HTTP request made to your web server complete with duration (start time - end….... read more


Golang : Get query string value on a POST request

golang query-string post-request

In this tutorial, we will learn how to configure your Golang web application(in HTTP handler) to accept query string input….... read more


Golang : How to Set or Add Header http.ResponseWriter?

golang header set add http-response-writer

Problem :

How to set or add header to http.ResponseWriter?

Solution :

The solution is similar to previous .... read more


Golang : Delay or limit HTTP requests example

golang http-request delay limit mux

Problem:

For some technical limitation reason, you want to delay or slow down HTTP requests to one of your machines….... read more


Advertisement