Skip to content

Commit 3346094

Browse files
committed
1 parent 6389fa9 commit 3346094

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

library/src/com/loopj/android/http/SyncHttpClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import android.content.Context;
44
import android.os.Message;
55

6+
import org.apache.http.HttpEntity;
67
import org.apache.http.client.methods.HttpUriRequest;
78
import org.apache.http.impl.client.DefaultHttpClient;
89
import org.apache.http.protocol.HttpContext;
@@ -100,6 +101,11 @@ public String put(String url) {
100101
return result;
101102
}
102103

104+
public String post(String url, HttpEntity entity){
105+
this.post(null, url, entity, null, responseHandler);
106+
return result;
107+
}
108+
103109
public String post(String url, RequestParams params) {
104110
this.post(url, params, responseHandler);
105111
return result;

0 commit comments

Comments
 (0)