     it 'sends Authorize headers correctly', (done) ->
       return done() if Dropbox.Xhr.ieXdr  # IE's XDR doesn't set headers.
 
-      xhr = new Dropbox.Xhr 'POST',
-                            'https://api.dropbox.com/1/oauth/request_token',
+      xhr = new Dropbox.Xhr 'POST', @url
       xhr.addOauthHeader @oauth
       xhr.prepare().send (error, data) ->
         expect(error).to.equal null

        done()

    it 'processes data correctly', (done) ->
      xhr = new Dropbox.Xhr 'POST',
                            'https://api.dropbox.com/1/oauth/request_token',
      xhr.addOauthParams @oauth
      xhr.prepare().send (error, data) ->
        expect(error).to.not.be.ok

      xhr.prepare().send()

    it 'processes data and headers correctly', (done) ->
      xhr = new Dropbox.Xhr 'POST', @url
      xhr.addOauthParams @oauth
      xhr.reportResponseHeaders()
      xhr.prepare().send (error, data, metadata, headers) ->
