O'Reilly logo

Windows® CE 3.0 Application Programming by Marshall Brain, Nick Grattan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sending Data to a Server

So far, all the HTTP calls covered in this chapter have been used to obtain data from an Internet server. Obviously, if you intend to use HTTP to access, for example, enterprise databases, you will need to send data back to the server. This can be done by doing the following:

  • Appending data onto the URL. This technique is used when small amounts of data are to be sent. Special characters, such as spaces, need to be encoded to ensure that the URL only contains legal characters.

  • Using the "POST" HTTP verb. You can send large amounts of data, including whole files.

The first technique is the easier to use, but the second is more flexible.

Sending Data with the URL

Data is appended onto a URL following a "?" character. The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required