Search Unity

UnityWebRequest Put Request

Discussion in 'Scripting' started by JandersonBrito, Feb 13, 2020.

  1. JandersonBrito

    JandersonBrito

    Joined:
    Jan 17, 2013
    Posts:
    4
    Hello everyone, i have some troubles with my put request, who exactly i need to pass the data through the method?

    i have this process in Postman and can't understand how i can make this in UnityWebRequest .

    upload_2020-2-13_21-23-24.png
    on the old times, i guess that need pass a WWWForm, but its depreciated right?
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    2,429
    WWWForm is not deprecated, only WWW is.
    The simplest way would be to create UnityWebRequest via UnityWebRequest.Post() passing in WWWForm and then change method to PUT on a returned instance.
     
unityunity