Import cURL
Utilizing Traffic Capture Tools
Make use of traffic capture tools such as Chrome, Charles, or Fiddler to capture and document web traffic. Once the data is captured, it can be exported in cURL
format for analysis or reuse.
Chrome
Open the Developer Tools by pressing
Ctrl+Shift+I
(Windows/Linux) orCmd+Option+I
(Mac).Navigate to the 'Network' tab.
Start capturing traffic.
Locate the desired API request, right-click on it, select 'Copy', and then choose 'Copy as cURL'.
Refer to the screenshot below for guidance.
Charles
Start capturing traffic.
Find the API of interest.
Right-click on the request and select 'Copy cURL Request'.
See screenshot below for more details.
Fiddler
- Begin traffic capture.
- Navigate to the top-left menu.
- Go to
File
, selectExport Sessions
, and thenSelected Sessions
. - Choose cURL script and proceed to save the file as a
.bat
file. - Open this
.bat
file using a text editor to copy its contents.
Import Captured Data
- Hover over or click the
+
button adjacent to the search box on the left side. From the drop-down menu, select "Import cURL". Alternatively, you can use the shortcut keyCtrl
(β
) +I
.![](https://assets.apidog.com/uploads/help/2023/07/18/b727caa5fa00c20a4d3ecb30895b8110.png) - In the dialog that appears, paste the cURL format data previously copied from your selected tool.
![](https://assets.apidog.com/uploads/help/2023/07/18/1d6577412a293005a1aa0b365fb46c6d.png) - Click the 'OK' button. You will see the captured packet data loaded into the quick debugging API interface.
![](https://assets.apidog.com/uploads/help/2023/07/18/eb9d7af89e7536ba0a0474d8de7c10ab.png) - This quick debugging interface allows you to directly test and debug the API. Once confirmed, click the 'save' button to save the API configuration permanently.
![](https://assets.apidog.com/uploads/help/2023/07/18/e7e296b83c5bcb070757038f48fa2c44.png) This streamlined process ensures efficient handling and reutilization of captured web traffic data.
Last modified: 3 months ago
Utilizing Traffic Capture Tools
Chrome
Charles
Fiddler
Import Captured Data