Skip to content

Instantly share code, notes, and snippets.

View bobuva's full-sized avatar

Bob Uva bobuva

View GitHub Profile
@bobuva
bobuva / printHttpRequest.go
Last active July 6, 2017 20:56
Print out HTTP Request for debugging purposes
// Reference: https://golang.org/pkg/net/http/httputil/#DumpRequest
import (
"net/http/httputil"
)
// Print this request for debugging.
// request: the http.Request object.
requestDump, err := httputil.DumpRequest(request, true)
if err != nil {
@bobuva
bobuva / ssl-alpn-test.txt
Last active September 18, 2020 12:34
SSL ALPN Negotiation with .NET Core 2.1 Preview
using System;
using System.Threading;
using System.Collections.Generic;
using System.Net.Security;
using System.Net.Sockets;
using System.Security.Authentication;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
namespace ssltest