Moin,
ich habe gelesen, dass die Klasse HttpClient nicht mehr weiterentwickelt wird. Ich arbeite eigl mit OpenInviter und möchte anhand einer Email Adresse Kontakte auslesen.
Ich erhalte aber keine Connection...
Gibt es nun andere Klassen?
Hier mein Beispiel:
HttpClient httpclient = new HttpClient();
PostMethod httpPostMethod = new PostMethod(openInviterUrl);
httpPostMethod.addParameter("email", userLogin);
httpPostMethod.addParameter("pass", password);
httpPostMethod.addParameter("provider", type); // type könnte zB gmx_de oder web_de sein
int httpStatus = httpclient.executeMethod(httpPostMethod);
if (httpStatus != HttpStatus.SC_OK) {
throw new ServiceException("keine Verbindung möglich");
}
ich habe gelesen, dass die Klasse HttpClient nicht mehr weiterentwickelt wird. Ich arbeite eigl mit OpenInviter und möchte anhand einer Email Adresse Kontakte auslesen.
Ich erhalte aber keine Connection...
Gibt es nun andere Klassen?
Hier mein Beispiel:
HttpClient httpclient = new HttpClient();
PostMethod httpPostMethod = new PostMethod(openInviterUrl);
httpPostMethod.addParameter("email", userLogin);
httpPostMethod.addParameter("pass", password);
httpPostMethod.addParameter("provider", type); // type könnte zB gmx_de oder web_de sein
int httpStatus = httpclient.executeMethod(httpPostMethod);
if (httpStatus != HttpStatus.SC_OK) {
throw new ServiceException("keine Verbindung möglich");
}