What you need is already explained with a working example in the ASIHTTPRequest example that you will find here
http://github.com/pokeb/asi-http-request/tarball/master
I couldn't explain it better that a working code, take some time to analyze it, shouldn't be a problem