FortiWeb
A FortiWeb can be configured to join a Security Fabric through the root or downstream FortiGate.
okhatab
Staff
Staff
Article Id 330785
Description

This article describes how to use Google Chrome, Firefox and Microsoft Edge to obtain curl commands in the different command lines, such as cmd, bash, PowerShell, for testing purposes and analysis.

Scope FortiWeb and FortiADC.
Solution

For Google Chrome:

  1. Open Google Chrome.
  2. In a new window, with a 'right click' open the context menu and select 'Inspect'.
  3. Select the Network tab.
  4. Access the required web page or application.
  5. 'Right-click' on the required generated HTTP request and select the required command line.

 

image.png


Example:

If it is required to collect the curl command for the bash command line, it is possible to copy and obtain the curl command for the required command line as shown below:

curl 'http://mytestserver.local/upload.php' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
-H 'Accept-Language: en-GB,en;q=0.9' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Cookie: cookiesession1=678A3E0DCA8A1CEB6BE5C66953AD007B; adAuthCookie=b34571e; iseeyou=Francisco, domain=10.10.10.10' \
-H 'Pragma: no-cache' \
-H 'Referer: http://mytestserver.local/' \
-H 'Upgrade-Insecure-Requests: 1' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36' \
--insecure

 

For Firefox:

  1. Open Firefox.
  2. In a new window, with a 'right click' open the context menu and select 'Inspect'.
  3. Select the Network tab.
  4. Access the required web page or application.
  5. 'Right-click' on the required generated HTTP request and select the required command line.


firefox example.PNG

 

For Microsoft Edge:

  1. Open Google Chrome.
  2. In a new window, with a 'right click' open the context menu and select 'Inspect'.
  3. Select the Network tab.
  4. Access the required web page or application.
  5. 'Right-click' on the required generated HTTP request and select the required command line.


Edge example.PNG