Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 1888

Using the TNetHTTPRequest

$
0
0

I am working with Dropbox using the component TNetHTTPRequest.

Is there someway to pass Params to the url?

Currently I simply assemble the URL by...

  URL := 'https://api.dropboxapi.com/1/metadata/auto/';
  URL := URL + '?access_token=' + URIEncode(lbledtAccessToken.Text);
  URL := URL + '&list=' + URIEncode('true');

I wish I could assemble a list of Key/Value pairs and pass it along when the TNetHTTPRequest is executed.

Any ideas?

What I am doing is working, but I want something more elegant.

PS: Maybe I should not use TNetHTTPRequest. If you think not, please tell me why.

Thanks!

 


Viewing all articles
Browse latest Browse all 1888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>