API v4: create issue with long description


#1

Hello. I’m working with gitlab via api v4.

Task is to create and update issues according to test runs. According to documentation here, to create issue I need to use POST request with all data encoded in the url.

With small issues it works well, but issues with long descriptions creation fails with bad request or description cuts in the middle …
Here is a curl line to reproduce:

 curl --header "PRIVATE-TOKEN: XXXXXXXXXXXXXX" -X POST "https://gitlab.com//api/v4/projects/3070803/issues?title=FAIL%3A+tst_iswalnum%2C+got+1+expected+0&description=%09Warning+%3A+can%27t+set+locale%3A+de_DE.ISO-8859-1%0A%09skipping+...%0A%09Warning+%3A+can%27t+set+locale%3A+de_DE.UTF-8%0A%09skipping+...%0A%09Warning+%3A+can%27t+set+locale%3A+ja_JP.UTF-8%0A%09skipping+...%0A%09iswalnum%3Ade_DE.ISO-8859-1%3A0%3A0%3A0%3AL%3Acan%27t+set+locale%0A%09iswalnum%3Ade_DE.UTF-8%3A0%3A0%3A0%3AL%3Acan%27t+set+locale%0A%09iswalnum%3AC%3A1%3A1%3A2%3AS%3APASSED%0A%09iswalnum%3AC%3A2%3A1%3A2%3AS%3APASSED%0A%09iswalnum%3AC%3A3%3A1%3A2%3AS%3APASSED%0A%09iswalnum%3AC%3A4%3A1%3A2%3AS%3APASSED%0A%09iswalnum%3AC%3A5%3A1%3A2%3AS%3APASSED%0A%09iswalnum%3AC%3A6%3A1%3A2%3AS%3APASSED%0A%09iswalnum%3AC%3A7%3A1%3A3%3AS%3APASSED%0A%09iswalnum%3AC%3A8%3A1%3A3%3AS%3APASSED%0A%09iswalnum%3AC%3A9%3A1%3A2%3AS%3APASSED%0A%09iswalnum%3AC%3A10%3A1%3A2%3AS%3APASSED%0A%09iswalnum%3AC%3A11%3A1%3A3%3AS%3APASSED%0A%09iswalnum%3AC%3A12%3A1%3A3%3AS%3APASSED%0A%09iswalnum%3AC%3A13%3A1%3A2%3AS%3APASSED%0A%09iswalnum%3AC%3" -v

#2

I’m attempting something very similar with the same results. Have you found any solutions?