I am trying to mimic the following command:
Code: Select all
curl -X PUT http://couch.mad.pink/test_suite_db2/zxsd3324d/bad_luck_friday13.jpg?rev=12-f5f9f6f0af4cb1f113c9794a10daf5bd \
--data-binary /User/pink/Dropbox/bad_luck_friday13.jpg \
-H "Cookie: AuthSession=cm9vdDo1NzA0NUVDRTovU5Y6gklEjt27Rn53KlC8TDQ4KQ" \
-H "Content-Type: image/jpg"
Code: Select all
put "Cookie: AuthSession=cm9vdDo1NzA0NUVDRTovU5Y6gklEjt27Rn53KlC8TDQ4KQ"&cr&"Content-Type: image/jpg" into tHeader
set httpHeaders to tHeader
put "http://localhost/test_suite_db2/zxsd3324d/bad_luck_friday13.jpg?rev=12-f5f9f6f0af4cb1f113c9794a10daf5bd" into tURL
--TRY 1:
put "binfile:/User/pink/Dropbox/bad_luck_friday13.jpg" into tFilePath
put URL(tFilePath) into URL(tURL)
--TRY 2:
put URL ("binfile:/User/pink/Dropbox/bad_luck_friday13.jpg") into tFile
put tFile into URL(tURL)
Can anyone suggest another approach?