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
 Hi,

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. Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards



use nine-patch-drawables instead

search for *.9.png files under <SDK>/platforms/*/data/res to see how
they look like

pskink

-- 

2. Start another application from another package with an Intent

I know how to update my own programs, and I know how to open programs
using the a predefined Uri (for sms or email for example)

I need to know how I can create an Intent to open MyTracks or any
other application that I don't know what intents they listen to.

I got this info from DDMS, but I havn't been succesful in turning this
to an Intent I can use. This is taken from when opening MyTracks
manually.

Thanks for your help

05-06 11:22:24.945: INFO/ActivityManager(76): Starting activity:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.google.android.maps.mytracks/
com.google.android.apps.mytracks.MyTracks bnds=[243,338][317,417] }

05-06 11:22:25.005: INFO/ActivityManager(76): Start proc
com.google.android.maps.mytracks for activity
com.google.android.maps.mytracks/
com.google.android.apps.mytracks.MyTracks: pid=1176 uid=10063
gids={3003, 1015}

05-06 11:22:26.995: INFO/ActivityManager(76): Displayed activity
com.google.android.maps.mytracks/
com.google.android.apps.mytracks.MyTracks: 1996 ms (total 1996 ms)

-- 

3. Simpati Turbo, Gak Jadi paka

4. TextView.setTextColor

5. (WTA) Jam gmail gak cocok dan gak bisa preview attachment

6. mounting and unmountind USB storage from Java App

7. Writing Android file system to internal NAND