@@ -42,6 +42,9 @@ Who is Using It?
42
42
[ Pose] ( https://market.android.com/details?id=com.pose )
43
43
: Pose is the #1 fashion app for sharing and discovering new styles
44
44
45
+ [ Pocket Salsa] ( https://play.google.com/store/apps/details?id=com.addicted2salsa.pocketsalsa&hl=en )
46
+ : Pocket Salsa is the easiest way to learn how to dance salsa.
47
+
45
48
Send me a [ message] ( https://github.com/inbox/new?to=loopj ) on github to let me
46
49
know if you are using this library in a released android application!
47
50
@@ -193,6 +196,27 @@ RequestParams params = new RequestParams(paramMap);
193
196
See the [ RequestParams Javadoc] ( http://loopj.com/android-async-http/doc/com/loopj/android/http/RequestParams.html )
194
197
for more information.
195
198
199
+ Adding HTTP Basic Auth credentials
200
+ ------------------------------------
201
+ Some requests may need username/password credentials when dealing with API services that use HTTP Basic Access Authentication requests.
202
+ You can use the method ` setBasicAuth() ` to provide your credentials.
203
+
204
+ Set username/password for any host and realm for a particular request. By default the Authentication Scope is for any host, port and realm.
205
+ {% highlight java %}
206
+ AsyncHttpClient client = new AsyncHttpClient();
207
+ client.setBasicAuth("username","password/token");
208
+ client.get("http://example.com ".....); //etc.
209
+ {% endhighlight %}
210
+
211
+ You can also provide a more specific Authentication Scope (recommended)
212
+ {% highlight java %}
213
+ AsyncHttpClient client = new AsyncHttpClient();
214
+ client.setBasicAuth("username","password", new AuthScope("example.com",80, AuthScope.ANY_REALM));
215
+ client.get("http://example.com ".....); //etc.
216
+ {% endhighlight %}
217
+
218
+ See the [ RequestParams Javadoc] ( http://loopj.com/android-async-http/doc/com/loopj/android/http/AsyncHttpClient.html )
219
+ for more information.
196
220
197
221
Uploading Files with ` RequestParams `
198
222
------------------------------------
@@ -262,6 +286,8 @@ The Droid Fu Project (<https://github.com/kaeppler/droid-fu>)
262
286
Rafael Sanches (< http://blog.rafaelsanches.com > )
263
287
: Original ` SimpleMultipartEntity ` code
264
288
289
+ Anthony Persaud (< http://github.com/apersaud > )
290
+ : Added support for HTTP Basic Authentication requests.
265
291
266
292
License
267
293
-------
0 commit comments