Fix for task attachments

Fix typo "mymeType" in addAttachmentToTask
Add debug info for http_code = 0