Autumn 2015
Commit more often
Unused imports, methods, classes
after removing stuff locally, it is not removed from git yet!
git rm file.txt
demonstrate?
.asString()
.toString
EntityUtils.toString(...)
int k;
String st = "";
while ((k = stream.read()) != -1) {
st += (char) k;
}
"result":"Success"
vs "result":"Fail"
There are several options for parsing available in ‘all’ programming languages.
Reader in = new InputStreamReader(url.openConnection().getInputStream());
String inputLine = in.readLine();
in.close();
int s1 = inputLine.indexOf("get_session_token");
int s2 = s1 + 36;
int s3 = inputLine.indexOf("secret_key");
int s4 = s3 - 3;
String sessionToken = inputLine.substring(s2,s4);
System.out.println("Session token: " + sessionToken);
Is the API provided by mediafire REST_API according to the principles which are listed in the IBM article RESTful API?
Did anyone implement URL encoding correctly, without adding the parameters one by one?
Is it safe to send parameters in the query string of the URL?
https://www.mediafire.com/api/user/get_session_token.php?email=mumail%40gmail.com&password=lookatme&application_id=37456&signature=deadbeef&response_format=json
A short example http://yousource.it.jyu.fi/~miselico/miselicos-week37-2
A long example http://yousource.it.jyu.fi/ties456-2015/week37-testable