Code example for ProtocolVersion

0
public class HighscoreSubmission { 
	private Handler							mHandler;
 
	private static final String				HTTP_REQUEST_METHOD	= "POST";
	private static final String				HTTP_REQUEST_URI	= "NONE";
	private static final ProtocolVersion	HTTP_VERSION		= new ProtocolVersion("HTTP", 1, 1);
 
	private static final HttpHost			HTTP_HOST			= new HttpHost("NONE", 80, "http");
 
	private static final String				DIGEST_ALGORITHM	= "MD5";
 
	private static HttpRequest generateHttpRequest(Context ctx, GameData data, String name) throws MethodNotSupportedException, NoSuchAlgorithmException, UnsupportedEncodingException {
 
		// scores 
		List<BasicNameValuePair> qparams = new ArrayList<BasicNameValuePair>();
		qparams.add(new BasicNameValuePair("stats_lines", Integer.toString(data.getmStats().getLines())));
		qparams.add(new BasicNameValuePair("stats_level", Integer.toString(data.getmStats().getLevel())));
		qparams.add(new BasicNameValuePair("stats_score", Long.toString(data.getmStats().getScore())));
		qparams.add(new BasicNameValuePair("stats_pieces", Integer.toString(data.getmStats().getTotalPieces())));
 
		// pieces