tags:

views:

37

answers:

2

I am a new iphone developer and was wondering if I could get some help with some code. I just want to know how to export basic character strings and variables to a website to be used by a third-party program. edited*(how do I send it as an http request to a web server?)

I am a fairly new programmer and am wondering if there is some sort of basic code line that sends a user input as an email/http request to a specific email/web address?

Basically, if I had something as basic as:

int variableOne;
int variableTwo;

What code would I use to export these variables?

A: 

It depends on the third-party's API. If it uses JSON, you should use a JSON library such as touchJSON. If it uses XML, you should probably use NSXML classes. Either way, you can use NSURLConnection to actually make the connection.

eman
+1  A: 

Use ASIHttpRequest framework, its best in business for iPhone/iPad

Madhup