Does anyone know how to create a ticket with attachment in RT (Request Tracker) using 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.
remove "attachment_1: /tmp/img2.PNG" add a POST a variable using addPostFile() with name "attachment_1" that contains the raw attachment.