[40] Results

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 : 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 : Covert map/slice/array to JSON or XML format

golang json xml http-response field-tags

Problem :

You have a data struct in map, slice or array format and you have to convert the 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 : 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 : http.Get example

golang http get

Grabbing content in raw HTML format is useful for crawling or parsing purpose. This short tutorial demonstrates how easy it….... read more


Golang : Get HTTP protocol version example

golang http-protocol-version http-2

Upgraded socketloop.com's NGINX web server to serve via HTTP/2 and wanted to find out if Golang can detect the HTTP/2.... read more


Golang : Web(Javascript) to server-side websocket example

golang websocket http-protocol

For this tutorial, we will explore how to write a HTML page with Javascript/JQuery that interface with server-side Golang service….... read more


Advertisement

Advertisement