- Home /
Question by
minim_games · Jan 11, 2018 at 01:46 AM ·
networkingnetworkhttp
Imitate cURL request using UnityWebRequest
I am still learning the UnityWebRequest interface. I have been able to complete GET and POST request with no body correctly, but I can't get the following cURL request to work in Unity:
curl 'https://www.googleapis.com/drive/v3/files' \
-X POST \
-H 'Authorization: Bearer [YOUR_BEARER_TOKEN]' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-binary '{"parents":["appDataFolder"]}' \
--compressed
Also, is there a way to filter Wiresharks output to show just UnityWebRequest calls? Thanks!
Comment