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

Revert to httpbin org #60

Merged
merged 3 commits into from
Sep 1, 2024
Merged

Conversation

andrew-demb
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets See php-http/socket-client#72 (comment)
Documentation
License MIT

What's in this PR?

Switched from https://httpbingo.org in favor of https://httpbin.org (revert of #56 + switching to https)

The original problem with the upstream service was resolved: postmanlabs/httpbin#617

Why?

Service https://httpbingo.org returns 402 Payment Required status code for requests with no user agent (use-case of php-http/php-socket-client).

Using this service with such side effects makes it harder to know what is wrong with some specific HTTP client adapter when tests failed just in one day (when upstream changed its rules).

Let's do it if we can switch to another service without such a strange behavior.

$ curl --request GET 'https://httpbingo.org/get' -H 'User-Agent:' -i
HTTP/2 402 
date: Wed, 07 Aug 2024 21:08:32 GMT
content-length: 0
server: Fly/9fe23f3e1 (2024-07-31)
via: 2 fly.io
fly-request-id: 01J4QAR1ZXN5JDQ4YBCC7R12ZZ-ams

Checklist

  • Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix
  • Documentation pull request created (if not simply a bugfix)

@@ -6,6 +6,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.1.1] - 2024-xx-xx
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fill this information on a release moment

@andrew-demb
Copy link
Contributor Author

/cc @dbu

andrew-demb pushed a commit to andrew-demb/socket-client that referenced this pull request Aug 7, 2024
TO BE REVERTED after [1] AND need to update min version for the tests package

[1] php-http/client-integration-tests#60
andrew-demb added a commit to andrew-demb/socket-client that referenced this pull request Aug 7, 2024
TO BE REVERTED after [1] AND need to update min version for the tests package

[1] php-http/client-integration-tests#60
Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice that its fixed. yeah lets switch back to this one then.

@dbu dbu merged commit 98e22b9 into php-http:3.x Sep 1, 2024
6 of 9 checks passed
@andrew-demb andrew-demb deleted the revert-to-httpbin-org branch September 1, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/redirect-to returns 404
2 participants