Comments (20)
Just a BTW since this thread mentions proxy support for HTTPX a lot: We're working on proxy support currently. :) Would love to have some users to test it once PRs are made, can I cc everyone in this thread when that happens?
from hyper.
Actually in master TLSv1.2 and TLSv1.3 are already the only available protocols. :)
But let's say you only want ECDHE+AESGCM for ciphers you can do:
import httpx, ssl
ctx = ssl.SSLContext()
ctx.set_ciphers("ECDHE+AESGCM")
client = httpx.Client(verify=ctx)
...
from hyper.
Just an FYI to everyone in this thread, HTTPX now ships with HTTP proxy support. :)
from hyper.
Yeah the timing is unfortunate because the last two weeks I've changed job, moved to a new apartment, and traveled out of town. Not a lot of time for open source!
@tomchristie has also been on vacation for two weeks so larger features don't have reviewers and we haven't had a release recently. I've done a good amount of work on HTTP tunnel proxies. I can get the SSLContext change in quick if that is an issue for you.
Just keep in mind that the more contributors we have the faster features can be implemented. :)
from hyper.
BTW the verify=SSLContext() interface for SSLConfig is functional in master.
from hyper.
Yea im seeing something sort of simular wit the accept-range and age
cache-control: max-age=0, must-revalidate, no-cache, no-store
content-type: application/json
expires: Sat, 28 Jul 2018 10:26:42 GMT
pragma: no-cache
set-cookie: PHPSESSID=45511e9a5f378584c2d90e5494251808; expires=Sun, 28-Jul-2019 11:26:42 GMT; Max-Age=3600; path=/; domain=xxxxxxxx.com; secure; HttpOnly
set-cookie: X-Magento-Vary=a74fedc5efc1d1867a421578922f820cb12e0565; expires=Sun, 28-Jul-2019 11:26:42 GMT; Max-Age=3600; path=/; secure; HttpOnly
x-content-type-options: nosniff
x-debug-info: eyJyZXRyaWVzIjowfQ==
x-frame-options: SAMEORIGIN
x-platform-server: i-087261e92df9f2aed
x-request-id: hr74djxfx23r74mjhlizn6df
x-xss-protection: 1; mode=block
accept-ranges: bytes
age: 0
accept-ranges: bytes
age: 0
accept-ranges: bytes
age: 0
accept-ranges: bytes
date: Sun, 28 Jul 2019 10:26:43 GMT
age: 0
set-cookie: _pxhd=518bb81822ce9d7eb4bcf241dbe060d923c5abf748f6f70a5fedc5ad70900f52:315a59c0-b122-11e9-b5de-590cfe45bdb4; Expires=Fri, 01 Jan 2021 00:00:00 GMT; path=/;
x-served-by: cache-lhr6326-LHR, cache-akl1426-AKL
x-cache: MISS, MISS
x-cache-hits: 0, 0
vary: Accept-Encoding
content-length: 79
from hyper.
dunno why sends headers in very very strange way, for each "," in headers dict it sends in new value insttead of in the same, and my requests gets rejected cause of these, if sends all in same field like normal requests would be much better
from hyper.
@GnubiBORED not to disrespect this project, but i've moved onto httpx it seems more active and it aligns with requests model which is what i like and prefer, while alpha, i think it'll go places imho
from hyper.
@VeNoMouS i can speak with you somewhere? telegram? discord?
btw does httpx has support for proxy ? i cannot find it in their docs
from hyper.
@GnubiBORED it does not as of yet, but their dev's are responding to tickets, my discord is VeNoMouSNZ#5979
from hyper.
I had the same problem.
`
user-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML
user-agent: | like Gecko) Chrome/76.0.3809.100 Safari/537.36
accept-encoding: | gzip
accept-encoding: | deflate
accept-encoding: | br
`
from hyper.
I had the same problem.
`user-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML
user-agent: | like Gecko) Chrome/76.0.3809.100 Safari/537.36
accept-encoding: | gzip
accept-encoding: | deflate
accept-encoding: | br`
move to httpx but it dosnt have proxy support
from hyper.
I had the same problem.
user-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML user-agent: | like Gecko) Chrome/76.0.3809.100 Safari/537.36 accept-encoding: | gzip accept-encoding: | deflate accept-encoding: | br
move to httpx but it dosnt have proxy support
hyper version 0.7.0 is ok, but it also doesn't have proxy support
from hyper.
@sethmlarson whats a rough eta of like proxies and ssl context's being implemented into the current release? we all have tickets... but we dont know the time schedule?
I've been waiting 3 weeks for ssl contexts for example.
from hyper.
Just a BTW since this thread mentions proxy support for HTTPX a lot: We're working on proxy support currently. :) Would love to have some users to test it once PRs are made, can I cc everyone in this thread when that happens?
when it happens you can for sure send me or send me a message in telegram if you want(@gnubie) im more active there anyway, i would like to test i have a big project that needs http/2 so yes :)
from hyper.
BTW the verify=SSLContext() interface for SSLConfig is functional in master.
In what way you do it? Im currently managing tls and ssl like these with requests, but these will not work in httpx i think
from requests.adapters import HTTPAdapter
from urllib3.poolmanager import PoolManager
import ssl
class MyAdapter(HTTPAdapter):
def init_poolmanager(self, connections, maxsize, block=False):
self.poolmanager = PoolManager(num_pools=connections,
maxsize=maxsize,
block=block,
ssl_version=ssl.PROTOCOL_TLSv1_2)`
then i just mount these into request session
session = requests.session()
session.mount('https://', MyAdapter())
from hyper.
i just need 1.2 so its fine.
thanks for fast reply :)
from hyper.
Just an FYI to everyone in this thread, HTTPX now ships with HTTP proxy support. :)
Its already testeable? or will come up in some days
from hyper.
HTTPX 0.7.3 supports the proxies
parameter and HTTP_PROXY
, HTTPS_PROXY
, and ALL_PROXY
environment variables. It should be testable so any defects you find should be reported as bugs. :)
See documentation for more info: https://encode.io/httpx/advanced
from hyper.
This is happening at this line
Line 252 in 18b629b
from hyper.
Related Issues (20)
- Ping does not work correctly HOT 3
- Edit on github link on RTD broken.
- Transfer of maintenance HOT 3
- How to control ssl context in a HTTP20Adapter HOT 1
- hyper.contrib.HTTP20Adapter with requests.session not working on python 2.7
- Upgrade from HTTP/1.1. to HTTP2 not working HOT 2
- Could you please make MAX_CHUNK configurable? HOT 1
- Upgrade to the latest h2 HOT 2
- How resolve DNS to a specific IP?
- HTTP11Connection does not use http/1.1 protocol HOT 1
- hyper hangs while POSTing to Apple APNS servers HOT 2
- Forcing Cleartext HTTP2 Without Upgrade Mechanism HOT 3
- How can I add query parameters when using class HTTP20Connection?
- Python deprecation warnings: collections, imp, logging.warn
- basestring erroneously ignores unicode in Python2.7
- Client certificates?
- Retain connection in HTTP/2 using hyper to avoid authentication for every request
- HTTP20Connection.request has no mechanism to send duplicate headers HOT 3
- The orders of sending packages in Debug mode and Run mode are different.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyper.