QC REST API : Unsupported Media Type
问题 We use HP Quality Center and we upgrade 11.5x to 12.21 and i use the API to create a ticket. Connexion and ticket creation are ok, but attachement of file is not. I got {"Id":"qccore.general-error","Title":"Unsupported Media Type","ExceptionProperties":null,"StackTrace":null} Here is my code $filename = $file->name; $eol = "\r\n"; $mime_boundary = 'boundary'; $content = '--' . $mime_boundary . $eol; $content .= 'Content-Disposition: form-data; name="entity.type"'; $content .= $eol . $eol;