Saya menggunakan tukang pos untuk menguji beberapa permintaan Curl ke server API. Pengembang API memberi kami perintah curl, tapi saya tidak bisa mengirimnya dari tukang pos. Bagaimana cara membuat permintaan seperti itu dari tukang pos?
curl -X POST "https://api-server.com/API/index.php/member/signin" -d "{"description":"","phone":"","lastname":"","app_version":"2.6.2","firstname":"","password":"my_pass","city":"","apikey":"213","lang":"fr","platform":"1","email":"email@example.com","pseudo":"example"}"
--0xKhTmLbOuNdArY
Content-Disposition: form-data; name="userfile"; filename="profil.jpg"
Content-Type: image/jpeg
Content-Transfer-Encoding: binary
<ffd8ffe0 00104a46 49460001 01010048 ... a00fffd9>
—0xKhTmLbOuNdArY—