-
-
Notifications
You must be signed in to change notification settings - Fork 697
Testing and working examples
To test Android Upload Service, you have the following choices:
- Use your own server (which handles one or more of the supported upload types)
- Use one of the server implementations provided in the examples (read below)
- Use the excellent http://www.posttestserver.com/ (bear in mind that the data you post there is public!) for HTTP Multipart requests
My advice:
When dealing with network app debugging, Wireshark is your best friend to find where the real problem is. If you are not familiar with it, I suggest you to learn it, as it will have a positive impact your career as a network programmer. Top 10 reasons to learn Wireshark.
In the examples folder you will find:
-
A simple Android application that uses this library
-
Demo servers which handle uploads:
-
node.js (HTTP Multipart and Binary). This is the server implementation used in development, as it's the most easy to get up and running in a matter of minutes and it's possible to make rapid changes when needed. You need to have node.js and npm installed. Refer to this guide. To run the server, open a terminal, navigate to
examples/server-nodejs
folder and simply execute:npm install (only the first time) npm start
The following endpoints will be available for upload testing:
HTTP/Multipart: http://YOUR_LOCAL_IP:3000/upload/multipart Binary: http://YOUR_LOCAL_IP:3000/upload/binary
Follow the instructions and the output that you will get in the console.
-
PHP (HTTP Multipart only). You need a running web server (e.g. Apache + PHP) in which to put the script. To get up and running in minutes you can use a solution like XAMPP (supports Windows, OS X and Linux).
-