Complete HTTP Web Inspection Request Sample

POST /inspection/v4.0 HTTP/1.1
Host: 10.0.190.45:8080
User-Agent: curl/7.55.1
Accept: */*
Authorization: Bearer jwttokenTalTal
Content-Length: 13431
Expect: 100-continue
Content-Type:multipart/form-data; boundary=------------------------c5f7846b2b41227e
 
--------------------------c5f7846b2b41227e
Content-Disposition: form-data; name="metadata"; filename="WebInspectionRequest.json"
Content-Type: application/json
 
{
    "context":
    {
        "global_message_id": "11111",
        "client_name": "FORCEPOINT_WEB",
        "data_channel": "HTTPS",
        "activity_type": "UPLOAD",
        "occurred_message_timestamp_utc_ms": 1505897456000
    },
    "contentDescriptors":
    [{
        "id": "0",
        "name": "trans_0_5397024941029260958.dat",
        "item_type" : "FILE",
        "size_bytes": 16384
    }],
    "source":
    {
        "user_principal_name": "john.smith@forcepoint.com",
        "down_level_logon_name": "nis1\jsmith",
        "sam_account_name": "jsmith",
        "distinguished_name": "CN=Smith\, John,OU=Users,OU=Raanana,DC=example,DC=com",
        "user_email_address": "jsmith@forcepoint.com",      
        "host_ips": ["192.168.31.14"],
        "host_name": "john_laptop",
        "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36",
        "host_domain": "dlptest.com"
    },
    "destinations":
    [{
        "destination_type": "WEB_APPLICATION",
        "http_request_url": "https://dlptest.com/",
        "http_request_url_hostname": "www.dlptest.com",
        "http_request_method": "POST",
        "url_categories": ["72378"]
    }]
}
--------------------------c5f7846b2b41227e
Content-Disposition: form-data; name="0"; filename="trans_0_5397024941029260958.dat"
Content-Type: application/http
 
Accept: application/json
Cache-Control: no-cache
X-Requested-With: XMLHttpRequest
Content-Type: multipart/form-data; boundary=---------------------------7e4278b104be
Referer: http://dlptest.com/http-post/
Accept-Language: en-US
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko