Does anyone know how to create a ticket with attachment in RT (Request Tracker) using 开发者_C百科REST service with PHP script?
remove "attachment_1: /tmp/img2.PNG" add a POST a variable using addPostFile() with name "attachment_1" that contains the raw attachment.
If you are using HTTP_Request, the function is addFile() instead of addPostFile(). -It worked for me.
精彩评论