rnburn / zipkin-cpp-opentracing

OpenTracing Tracer implementation for Zipkin in C++
Apache License 2.0
51 stars 45 forks source link

when curl access zipkin server use http1.1 ,response 100-continue #8

Open reynaldliu opened 6 years ago

reynaldliu commented 6 years ago

add http header "expect:" to skip http 1.1 100-continue

headers.append("Content-Type: application/json"); headers.append("expect:"); https://github.com/rnburn/zipkin-cpp-opentracing/blob/master/zipkin/src/zipkin_http_transporter.cc

rnburn commented 6 years ago

Thanks, could you put in a PR for this.

Also, is there any documentation about this way of using the "expect:" header you can point me to?

reynaldliu commented 6 years ago

https://stackoverflow.com/questions/2964687/how-to-handle-100-continue-http-message

https://www.greenbytes.de/tech/webdav/rfc2616.html#rfc.section.6

rnburn commented 6 years ago

Thanks. I'm fine adding this. Just put in a PR please. Also, found this to helpful https://gms.tf/when-curl-sends-100-continue.html#disabling-expect-logic