Submitting using curl - include html tags
I am writing a script that is used to submit a package to testflight from my build system. In order to make the presentation as clear as possible I would like to include some basic HTML in the note section, however, using a < or > causes an error in curl. I have tried different variations of quoting and escaping but have not yet been able to find the solution.
Code:
VERSION_HEADER='<strong>Version: </strong>' Code:
curl: (26) failed creating formpost data If I use VERSION_HEADER="'<strong>Version: </strong>'" then the single quotes are submitted. If I use < or > then those are submitted but the receiving api does not decode them correctly. Can anyone suggest a way to submit exactly: <strong>Version: </strong> |
You need to URL-encode your data before submitting it. It would look like this (using Python in example):
Code:
>>> import urllib |
From the cURL manual:
Code:
To send a field value literally without interpreting a leading '@' |
Thanks very much. The --form-string works exactly as I need it.
|
All times are GMT -5. The time now is 09:51 AM. |