CURL with post

I am using 1.6.1.12.

Trying to use CURL with posted variables. Documentation seemingly indicates this is acceptable:

CURL(www.mydomain.com/api[var1=abc|var2=123])

This does not actually send any post variables. Does anyone have working code that does a CURL with post? Is there a version I need to upgrade to or a patch I need to get?

Thanks.