svanoort / pyresttest

Python Rest Testing
Apache License 2.0
1.15k stars 326 forks source link

Future option to use 'requests' in place of pycurl where allowed #167

Open svanoort opened 8 years ago

svanoort commented 8 years ago

This has been raised several times by users as a desired feature, because:

(a) Requests is easier to install (pure-python, installs by pip), none of the native-code libcurl issues especially with virtualenv setups (b) Requests is sometimes more reliable (example: platform performance bugs with DNS lookup and one user reporting poor windows performance of libcurl -- windows isn't supported but still desirable). (c) Requests is more standard except where performance matters.

Previously, this was impossible due to tight library coupling and benchmarks requiring curl. With the refactoring in milestones 1.8 and 2.0 to move run_test/run_benchmark execution logic back into the test/benchmark steps, there will be enough encapsulation to allow it.

Challenges to address: