![]() |
curl to Delphi REST
Hallo zusammen,
ich habe folgende curl Abfrage;
Code:
Wie kann ich diese Abfrage im REST-Debugger eingeben? Es geht speziell umd die Zeile mit der Authorization. Wo kann ich alternativ in der TRESTRequest Komponente diese Zeile eintragen? Ich sehe dort keine Header-Property.
curl -X 'GET' \
'http://localhost:8081/public/cards' \ -H 'accept: application/json' \ -H 'Authorization: Bearer bSjl0b72C0GcuaaMGctXLRMu8HzES7FOdk21572f3sSPuL3DyeA-1szi2LsADKVCe8sDXMLgWUCOGQ usw...' |
AW: curl to Delphi REST
Schau mal im REST Debugger in das Tab "Authentication".
Von dort aus per "Method:"-Combobox dein Verfahren auswählen. Bei OAUTH und OAUTH2 gibt es unten rechts einen Button namens "OAuth-Assistant", wo du verschiedene Sachen eintragen kannst. Schau mal im REST Debugger in das Tab "Parameters". Dort auf den Button "Add" gehen. In der "Kind:"-Combobox das Item "Header" auswählen. In der "Name:"-Combobox das Item "Authorization" auswählen. Im Editfeld für "Value:" entsprechend dein Wert eintragen. Ob mit oder ohne "Do not encode"-Option musst du mal probieren. |
AW: curl to Delphi REST
Danke, das hat geklappt. Ich hatte das alles schon ausprobiert, aber das "Do not encode" war mir entgangen. Wie blind kann man sein... :cyclops:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:06 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz