dcoles / pycurl-requests Goto Github PK
View Code? Open in Web Editor NEWA Requests-compatible interface for PycURL.
Home Page: https://pypi.org/project/pycurl-requests/
License: MIT License
A Requests-compatible interface for PycURL.
Home Page: https://pypi.org/project/pycurl-requests/
License: MIT License
what i got from POSTMAN
Set-Cookie: test!
Set-Cookie: PHPSESSID=8536fl1c5igh89aqsjuf3l40jm; path=/
Set-Cookie: TestCookie=%3A%202595; expires=Thu, 01-Jul-2021 07:56:03 GMT; Max-Age=3600
what i got from pycurl-requests (resp.headers.get("Set-Cookie", None)
)
Set-Cookie: test!, PHPSESSID=8536fl1c5igh89aqsjuf3l40jm; path=/, TestCookie=%3A%202595; expires=Thu, 01-Jul-2021 07:56:03 GMT; Max-Age=3600
this behaviour does not confirm to rfc.
Setting headers = {'Header': b'Value'}
results in an incorrect header:
Header: b'Value'
The byte-string should be passed through unchanged.
I didn't find that if the session is able to update headers like in requests api:
session = requests.Session()
session.headers.update({'x-test': 'true'})
This is the requests documentation for it:
https://requests.readthedocs.io/en/latest/user/advanced/#session-objects
Please remove pytest
from the requirements
See searx/searx#1725
The package searx.httpclient is nearly autonomous and implements the requests API over curl.
I've encountered a segfault using HTTP/2 on Ubuntu 18.04: https://github.com/asciimoo/searx/blob/6abf4213d2c05c505836170dbf19483b06030799/searx/httpclient/misc.py
TypeError: request() got an unexpected keyword argument 'curl'
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.