Posted by: bearc0025 | January 18, 2011

ASIHTTPRequest example code – All-Seeing Interactive

 

ASIHttpRequest

 

I roll my own for most URL/HTTP communication, but I hadn’t messed w/ multipart image posts in a while. I found the class I wrote a while back (based on this) but wanted to try ASIHTTPRequest. Their doco is well put together and it’s fairly easy to implement…

To send POST data in a manner compatible with web page forms, use the included ASIFormDataRequest subclass. Data is posted in ‘application/x-www-form-urlencoded’ format, or ‘multipart/form-data’ format when uploading binary data or files. Data in files is read as needed from disk, so POSTing large files is OK, as long as your web server is setup to handle them.

via ASIHTTPRequest example code – All-Seeing Interactive.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: