There is no such thing as "transfer data" to "just server". Usually, the Server is a machine. What it does totally depends on the software it runs, and there is nothing generic about it. You need to decide what your server-part software should do (and perhaps develop such software if a regular FTP or HTTP server is not what you need), only than you should think what a particular client part should do.
[EDIT]
Answering follow-up Question:
Now I understand the server is HTTP. I did not get why a regular Web client is not an options. Probably some local code (and the Mobile client system should be involved). In this case, you need to use the class
System.Net.HttpWebRequest
: send a request (using POST method, I presume) to the server. Check is all the API you use is available for your system. I found platform compatibility information on the help pages for Framework v.2.0, 3.0 and 3.5 (
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest(v=vs.90).aspx[
^]), but by some reason not for 4.0. (maybe this version is not yet ready for this platform?). Anyway, I think it should be available on the Framework already installed on your mobile device.
Look at the code sample here:
http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx[
^]. This class is abstract, but run-time class will be
System.Net.HttpWebRequest
, as it will be constructed via the factory
WebRequest.Create
method which will select appropriate run-time by your URL.
The example above is just a skeleton.
I have found a more detailed sample for you, this time the one using "POST" method and actually sending some data. It should be very close to your client code. Here:
http://msdn.microsoft.com/en-us/library/debx8sh9.aspx[
^].
You can test it using some available running Web site.
—SA