Skip to content

unexpected HTTP status: 100 Continue for request GET https://example.com #72

Open
@armanbilge

Description

@armanbilge
//> using lib "org.http4s::http4s-curl::0.2.0"

import cats.effect.IO
import org.http4s.curl._

object App extends CurlApp.Simple {
  def run = curlClient.expect[String]("https://example.com").flatMap(IO.println)
}

Yields:

org.http4s.client.UnexpectedStatus: unexpected HTTP status: 100 Continue for request GET https://example.com

I guess we need special handling for 100 responses? 🤔

Or maybe we can make curl not send this.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100

To have a server check the request's headers, a client must send Expect: 100-continue as a header in its initial request and receive a 100 Continue status code in response before sending the body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions