AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

CURL in Delphi ausführen -d

Ein Thema von Ykcim · begonnen am 5. Feb 2025 · letzter Beitrag vom 10. Feb 2025
 
Kas Ob.

Registriert seit: 3. Sep 2023
466 Beiträge
 
#8

AW: CURL in Delphi ausführen -d

  Alt 6. Feb 2025, 08:05
Here an example of using trace with CURL

Zitat:
curl -k -i -X POST -H "accept: application/json" -H 'content-type: application/x-www-form-urlencoded' https://api-sandbox.dhl.com/parcel/d.../ropc/v1/token -d "grant_type=password\&username=user-valid\&password=SandboxPasswort2023!\&client_id=yy yyyyyyyyyyyyy\&client_secret=xxxxxxxxx" --trace-ascii dump.txt
You will have dump.txt file in the same folder contain many things and here a small part you might need to look at
Code:
=> Send header, 203 bytes (0xcb)
0000: POST /parcel/de/account/auth/ropc/v1/token HTTP/1.1
0035: User-Agent: curl/7.39.0
004e: Host: api-sandbox.dhl.com
0069: accept: application/json
0083: Content-Length: 123
0098: Content-Type: application/x-www-form-urlencoded
00c9:
=> Send data, 123 bytes (0x7b)
0000: grant_type=password\&username=user-valid\&password=SandboxPasswo
0040: rt2023!\&client_id=yyyyyyyyyyyyyyy\&client_secret=xxxxxxxxx
== Info: upload completely sent off: 123 out of 123 bytes
Kas
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:59 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-2025 by Thomas Breitkreuz