See https://golang.org/pkg/net/http/#Transport.ExpectContinueTimeout
The Go http package deals with 100 continue automatically. On Sat, Apr 8, 2017 at 3:24 PM, David Peacock <david.j.peac...@gmail.com> wrote: > Hi all, > > I'm having difficulty implementing file upload using > http.NewRequest("PUT"). As shown in my use case below, I'm attempting to > open a PUT connection to a remote server, and hand over a binary file. > > What I am expecting after my client headers are sent is an HTTP > 100-continue response, but instead I'm receiving back a 200 OK. > > https://play.golang.org/p/i1cgVH5JZd > > Am I going about this the right way? Do I have some fundamental mistakes > with what I'm doing? > > Any pointers would be appreciated please. > > Thank you, > David > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.