i want to send a file from my iphone which have some strings to a local web server with iphone sdk?how can i do it ?is there any sample code for it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I guess using ASIHttpRequest is a common way of doing it, but you could also use NSURLConnection. An example on using NSURLConnection to post data can easily be found. Conceited Code has a couple of tutorials showing both general use of NSURLConnection and posting data with it.
ASIHttpRequest also has some simple examples that should get you going.