Skip to content
Need to post an image to a server? Or just send a plain POST request in a snap? This simple framework is to help.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
res
src/com/cleverua/android
.classpath
.gitignore
.project
AndroidManifest.xml
README.rdoc
default.properties

README.rdoc

DESCRIPTION

Need to post an image to a server? Or just send a plain POST request in a snap? This simple framework is to help.

USAGE

First you have to set up request parameters, they can be either string of file type, see below:

List<PostParameter> params = new ArrayList<PostParameter>();
params.add(new PostParameter<String>("fullname", "John Doe"));
params.add(new PostParameter<File>("headshot", new File(Environment.getExternalStorageDirectory() + "/shot.png"));

Then you just send the params to server by calling this:

MultipartPost post = new MultipartPost(params);
post.send("http://www.yourhost.com");

That's all.

You can’t perform that action at this time.