Hi All, One of the requirements of my cocoa app on Lion (using xcode) is to upload an file to an upload server as a "multipart/form-data" using HTTP POST. I achieve the upload using NSURLConnections when I am connected via ethernet. For some reason When I am connected via WiFi, the upload using NSURLConnection seems to fail (with an error 504). But when I try to upload the same file to the same URL using CURL the same succeeds. Not sure why this behavior is exhibited. I use the following curl command Code: curl --form file=@/Volumes/Untitled/fig1.png http://xxxx.com/upload I also get the response "Received 202946 bytes of file fig1.png" indicating that the upload was successful. Note: the url specified in the sample above is dummy. Now I am trying to implement the http upload using CURL programatically. I've tried using the sample provided in http://curl.haxx.se/mail/lib-2008-01/0322.html but unable to succeed in uploading. Also tried my hands on CurlHandle library but still no success. I might be missing something very silly. It might be too much to ask in a forum, but is it possible for some of you gurus to actually post an curl code which you know for sure does http post upload without giving any error. Thanks & Regards.