--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/9d3198ea-a99d-4318-a977-654710d2ecdb%40googlegroups.com.
curl -F "parameter=asdfgh" -F "hash=asdgh" -F "fileUpload=@file.png" https://test.com
--boundary
Content-Type: application/json; charset=UTF-8.
parameter=asdfgh&hash=asdgh.
--boundary
Content-Type: application/octet-stream.
...
etcIf you explicitly set the Content-Type header it should not be overridden by Tasker automatically.About sending a file, can you tell me what kind of request the server is expecting?
On Wed, Jul 24, 2019 at 9:26 AM Ricardo Moreira <ricardo...@gmail.com> wrote:
--Hi, regarding Tasker 5.8’s HTTP RequestI know I can force a POST’s body to be form data by setting the appropriate Content-Type header and properly formatting the input field, and it works great.But when I also want to upload a file, what’s on the body input field is forced to be an application/json. Is there a way around this?Also nice boundary.
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tas...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/b7c0523a-86c7-4f59-9de2-ffc2a512893c%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/b7c0523a-86c7-4f59-9de2-ffc2a512893c%40googlegroups.com.
Ok, I changed it: Can you please try this version? https://drive.google.com/file/d/1UfMEt1H6wjlMDdsqByn-flCRqE45PdJ1/view?usp=sharingNow setting the Content-Type header in the headers will determine what the content type of the body is :)
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/b7c0523a-86c7-4f59-9de2-ffc2a512893c%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/c97e2f4d-ac77-48b2-bf7a-8181b06b5d18%40googlegroups.com.