What do you want to save?
Add Code snippet
New code examples
-
Go 2021-10-19 02:33:03
golang render html template
// parse html via index.html package main import ( "net/http" "text/template" ) type Context struct { Title string Name string Fruits [3]string } func main() { http.HandleFunc("/", func(w http.ResponseWriter, req... Add solution -
Go 2021-10-10 06:59:10
Golang HTTP Server
// Code by Divyanshu Shekhar - https://divyanshushekhar.com/golang-http-server/ // Golang HTTP Server package main import ( "fmt" "log" "net/http" ) const ( // Host name of the HTTP Server Host = "localhost"... Add solution -
Other 2021-09-25 11:24:02
Header oversize
require 'net/http' uri = URI("https://example.org/index.html") req = Net::HTTP::Get.new(uri) num = 200 i = 0 # Setting malicious and irrelevant headers fields for creating an oversized header until i > num do req["X-Oversized-Header-... Add solution