Corrected request generation code

The code was using url + BASEURL but the url was generated during the
connection.
Merge pull request #7 from sheeprine/master

Corrected request generation code