Welcome To Golang By Example

Menu
  • Home
  • Blog
  • Contact Us
  • Support this website
Menu

Category: Tech

HTTP send/receive pdf file in request body example in Go (Golang)

Posted on January 8, 2021January 8, 2021 by admin

Overview multipart/form-data content-type can be used to send the pdf files in an HTTP POST call. The form-data will contain pdf filename- test.pdf in the example that we will see in this…

HTTP send/receive jpeg file in request body example in Go (Golang)

Posted on January 7, 2021January 7, 2021 by admin

Overview multipart/form-data content-type can be used to send the jpeg files in an HTTP POST call. The form-data will contain jpeg filename- test.jpeg in the example that we will see in this…

HTTP client or Send x-www-form-urlencoded request body in Go (Golang)

Posted on January 1, 2021January 4, 2021 by admin

Overview The applcation/x-www-form-urlencoded content-type request body is like a giant query string. Similar to the query string in a URI it is a key-value pair having the below format. where there are…

HTTP server or Parse incoming application/x-www-form-urlencoded request body in Go (Golang)

Posted on December 31, 2020January 1, 2021 by admin

Note: This post is parsing the application/x-www-form-urlencoded request at the server end. If you using an HTTP client and trying to send the application/x-www-form-urlencoded request then please see the below link https://vikasboss.github.io/http-client-urlencoded-body-go/…

Base64 encoding/Decoding in Go (Golang)

Posted on December 25, 2020December 25, 2020 by admin

Overview Golang provides an encoding/base64 package that can be used to encode strings to base64 and decode the base64 encoded string back to the original string. https://golang.org/pkg/encoding/base64/ Go supports base64 in 4…

HTTP Client/Server with Basic Auth in Go (Golang)

Posted on December 19, 2020December 20, 2020 by admin

Overview Basic auth is the simplest form of providing access controls for resources on web server.  Basic Access Authentication is a way of providing user name and password to the server while…

Get client’s user agent from an incoming HTTP request in Go (Golang)

Posted on December 18, 2020December 18, 2020 by admin

Overview User-agent in an incoming HTTP request is present in the headers of the request. In Go an incoming HTTP request is represented by the http.Request struct https://golang.org/src/net/http/request.go The http.Request struct exposes…

Get response headers for an outgoing HTTP request in Go (Golang)

Posted on December 14, 2020December 14, 2020 by admin

Note: Related Post Get request headers from an incoming HTTP request in Golang – https://vikasboss.github.io/headers-http-request-golang/ Set response headers for an incoming HTTP request in Golang – https://vikasboss.github.io/set-resposne-headers-http-go/ Set request headers for an outgoing HTTP…

Set request headers for an outgoing HTTP request in Go (Golang)

Posted on December 10, 2020December 14, 2020 by admin

Note: Related Post Get headers from an incoming HTTP request in Go – https://vikasboss.github.io/headers-http-request-golang/ Set response headers for an incoming HTTP request in Go (Golang) – https://vikasboss.github.io/set-resposne-headers-http-go/ Get response headers for an outgoing HTTP…

Set response headers for an incoming HTTP request in Go (Golang)

Posted on December 9, 2020December 14, 2020 by admin

Note: Related Post Get headers from an incoming HTTP request in Go – https://vikasboss.github.io/headers-http-request-golang/ Get response headers for an outgoing HTTP request in Golang- https://vikasboss.github.io/get-response-headers-making-go/ Set headers for an outgoing HTTP request…

Posts pagination

Previous 1 … 23 24 25 … 62 Next
Follow @golangbyexample

Popular Articles

Golang Comprehensive Tutorial Series

All Design Patterns in Go (Golang)

Slice in golang

Variables in Go (Golang) – Complete Guide

OOP: Inheritance in GOLANG complete guide

Using Context Package in GO (Golang) – Complete Guide

All data types in Golang with examples

Understanding time and date in Go (Golang) – Complete Guide

©2025 Welcome To Golang By Example | Design: Newspaperly WordPress Theme