I’m not entirely clear if you’re having trouble with creating a task or with reading already-created tasks; if it’s the former (which I think it is) then here’s an example of creating a task using CURL:
Note this sample uses JSON which is how I recommend you do it.