joomla-framework / http Goto Github PK
View Code? Open in Web Editor NEWJoomla Framework Http Package
License: GNU General Public License v2.0
Joomla Framework Http Package
License: GNU General Public License v2.0
Should also be changed in the framework
Line 122 in 7ee1ca9
Line 88 in 95f46a3
Originally posted by @PhilETaylor in joomla/joomla-cms#35568 (comment)
Hello @mbabker
Would be cool to have protocol version support.
Made a http client adapter, and thats the only thing thats missing.
https://github.com/saxulum/saxulum-http-client-adapter-joomla
Regards @dominikzogg
The Factory should be able to support custom implementations as well as the base classes as part of this package. Our social API packages which subclass Joomla\Http\Http
are unable to use the factory to build an instance of this because of the hardcoded dependencies.
Not sure if this is something that should be fixed be or is willing to be fixed - but finding a scenario where a curl response could have multiple Set-Cookie
headers. But because https://github.com/joomla-framework/http/blob/master/src/Transport/Curl.php#L279 merges the headers into an associative array, only the last header is made available to the calling script with no way to access the original headers.
To reproduce, create a simple script that set's several cookies with setcookie()
. Then a second script using this package to post to it and examine the $response->headers
. Only the last Set-Cookie
header will be available.
As a work around - will look at using a curl cookie jar but was hoping for something "in memory" rather than writing cookies to a file.
Exceptions thrown within the transports need to implement Psr\Http\Client\ClientExceptionInterface
. This is going to require creating new Exception subclasses for the various error cases still using core PHP exceptions to fulfill this contract. As we don't work with Psr\Http\Message\RequestInterface
in the transports, use of the two sub-interfaces is not needed.
Update composer/ca-bundle to latest version on 1.0.x branch to remove expired DST Root CA X3 rcoot certificate.
Remove old expired DST Root CA X3 Let's Encrypt root certificate - see Old Let’s Encrypt Root Certificate Expiration and OpenSSL 1.0.2
HTTPS connections to servers with latests Let's Encrypt certificates from server with openssl version 1.0.2 are working.
HTTPS connections to servers with latests Let's Encrypt certificates from server with openssl version 1.0.2 are NOT working
Any server with openssl 1.0.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.