regarding HTTPClient : How to get the HTTP request posted by the native browser

by Viju » Fri, 20 May 2011 09:34:00 GMT

Sponsored Links

Is it possible to get all the HTTP URL request triggered by the
browser (Apache) from my client application ? If then, can you please
tell me the framework API which gives me the URL ?

I'm developing some kinda of HTTP sniffer application for android
which will log all the HTTP Url request made by the native browser
(Apace) and store it in a local file.


Re: regarding HTTPClient : How to get the HTTP request posted by the native browser

by Jens » Fri, 20 May 2011 17:31:40 GMT

 Apache - as in the HttpClient, org.apache.http.* or the web server?
Further - the browser in the phone typically doesn't use the apache
HTTP client library, it's JNI to WebKit.

The good thing is that you're not going to be able to sniff either
without building your own firmware and flashing the phone.


Sponsored Links

Other Threads

1. What will cause SQLiteQueryBuilder.query infinite loop?

to dear all Android developers,

I'm dealing with database operation on Android recently.
However, there has a problem troubles me that the query method in
SQLiteQueryBuilder infinitely loops and has no return.

The operation code is like below:

//------------ CODE section --//
SQLiteQueryBuilder qb = new SQLiteQueryBuilder();

qb.appendWhere(TABLE._ID + "=" + id + " AND "
        + TABLE.SURNAME + "='" + surname + "'");

String orderBy = TABLE._ID + " ASC";
String[] projection = new String[] {

mDbHelper = new DatabaseHelper(mCtx);
mDb = mDbHelper.getWritableDatabase();

Cursor c = qb.query(mDb, projection, null, null, null, null, orderBy);
//------------ CODE section --//

However, it stuck in the query and never return back, and there has
neither exceptions nor any error messages from the LogCat. Does there
any mistake I make in my code?

2. display the device screen on the PC

I has seen someone write an java app to show the device screen on the
PC - realtime thru repeated frame grabs.
It used the same method as used by the eclipse DDMS perspective to
capture the screen shot of the connected device or emulator.

Can anyone post the link again .. ??..


3. Glitch with Autocomplete

4. Google are ascii cowboys!

5. How to detect PDP context activation/deactivation and out of coverage scenarios?

6. controlling window size of another activity

7. Need Some Help