Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
armanbilge opened this issue Feb 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@armanbilge
Copy link
Member

//> 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.

@armanbilge armanbilge added the bug Something isn't working label Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant