kennethreitz/requests — Issue #423: Cast the request URL as a string before using it
Author: nomulous
Created: 2012-02-13 04:35:29+00:00
State: open

It would be great if requests would call `unicode()` on the URL parameter before using it, so that users can pass thing masquerading as URL-string, like an object from the excellent and extremely useful library [furl](https://github.com/gruns/furl).

This would turn this code:
```
requests.get(furl('http://example.com/ ').set({'query': 'string'}).url)
```
Into this:
```
requests.get(furl('http://example.com/ ').set({'query': 'string'}))
```
Which currently raises `AttributeError: 'furl' object has no attribute 'find'`.

Also, as a side note, it would be cool if you could use schema-less URLs and requests would default to http://