to assert the validity of the json. Here is the verbose output :
Code: Select all
=> Send header, 222 bytes (0xde)
0000: POST /api/rest/issues HTTP/1.1
0020: Host: mantis.sfr-ftth.com
003b: User-Agent: curl/7.55.1
0054: Accept: */*
0061: Authorization:xxxxxxxxxxxxxx
0091: Content-Type:application/json
00b0: Content-Length: 1523
00c6: Expect: 100-continue
00dc:
<= Recv header, 23 bytes (0x17)
0000: HTTP/1.1 100 Continue
=> Send data, 1523 bytes (0x5f3)
0000: {summary:summarysample,category_id:1,description:Description,pro
0040: ject:{id:11,name:Test},custom_fields:[{field:{id:custom_field_10
0080: ,name:custom_field_10},value:va},{field:{id:custom_field_11,name
00c0: :custom_field_11},value:00000},{field:{id:custom_field_12,name:c
0100: ustom_field_12},value:vav},{field:{id:custom_field_13,name:custo
0140: m_field_13},value:Beton},{field:{id:custom_field_14,name:custom_
0180: field_14},value:Casse},{field:{id:custom_field_15,name:custom_fi
01c0: eld_15},value:Oui},{field:{id:custom_field_32,name:custom_field_
0200: 32},value:Detendu},{field:{id:custom_field_16,name:custom_field_
0240: 16},value:Facade},{field:{id:custom_field_23,name:custom_field_2
0280: 3},value:vpl},{field:{id:custom_field_24,name:custom_field_24},v
02c0: alue:99},{field:{id:custom_field_21,name:custom_field_21},value:
0300: Chaussee},{field:{id:custom_field_22,name:custom_field_22},value
0340: :Cassee},{field:{id:custom_field_25,name:custom_field_25},value:
0380: var},{field:{id:custom_field_26,name:custom_field_26},value:Ouve
03c0: rte},{field:{id:custom_field_29,name:custom_field_29},value:Oui}
0400: ,{field:{id:custom_field_30,name:custom_field_30},value:Oui},{fi
0440: eld:{id:custom_field_31,name:custom_field_31},value:vac},{field:
0480: {id:custom_field_27,name:custom_field_27},value:2.5},{field:{id:
04c0: custom_field_28,name:custom_field_28},value:50.5},{field:{id:cus
0500: tom_field_17,name:custom_field_17},value:Collectivite},{field:{i
0540: d:custom_field_18,name:custom_field_18},value:vdn},{field:{id:cu
0580: stom_field_19,name:custom_field_19},value:vde},{field:{id:custom
05c0: _field_20,name:custom_field_20},value:0123456789}]}
== Info: We are completely uploaded and fine
<= Recv header, 36 bytes (0x24)
0000: HTTP/1.1 400 Summary not specified
<= Recv header, 21 bytes (0x15)
0000: Server: nginx/1.9.3
<= Recv header, 37 bytes (0x25)
0000: Date: Mon, 03 Feb 2020 09:21:57 GMT
<= Recv header, 32 bytes (0x20)
0000: Content-Type: application/json
<= Recv header, 21 bytes (0x15)
0000: Content-Length: 195
<= Recv header, 24 bytes (0x18)
0000: Connection: keep-alive
<= Recv header, 25 bytes (0x19)
0000: X-Powered-By: PHP/7.4.1
<= Recv header, 74 bytes (0x4a)
0000: Set-Cookie: PHPSESSID=40ddeba34124640a37f2fb41bbbee3eb; path=/;
0040: HttpOnly
<= Recv header, 39 bytes (0x27)
0000: Cache-Control: private, max-age=10800
<= Recv header, 46 bytes (0x2e)
0000: Last-Modified: Wed, 08 Jan 2020 13:56:17 GMT
<= Recv header, 2 bytes (0x2)
0000:
<= Recv data, 195 bytes (0xc3)
0000: {"message":"Summary not specified","code":11,"localized":"Le cha
0040: mp obligatoire \u00ab\u202fsummary\u202f\u00bb n\u2019est pas re
0080: nseign\u00e9. Veuillez v\u00e9rifier \u00e0 nouveau votre saisie
00c0: ."}
{"message":"Summary not specified","code":11,"localized":"Le champ obligatoire \u00ab\u202fsummary\u202f\u00bb n\u2019est pas renseign\u00e9. Veuillez v\u00e9rifier \u00e0 nouveau votre saisie."}== Info: Connection #0 to host mantis.sfr-ftth.com left intact