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. the user data image is used by another emulator. aborting

Dear siva,
           if u r in windows use the task manager & if u r in linux use
system monitor.
Check if the emulator process is already running. If so kill it. Now ur prob
shd be solved.






-- 
Regards,
Sujay
Mike Ditka <http://www.brainyquote.com/quotes/authors/m/mike_ditka.html>  -
"If God had wanted man to play soccer, he wouldn't have given us arms."

--~--~---------~--~----~------------~-------~--~----~

2. listview onlistitemclick not getting

Hi all,
  I am beginer to the anroid ,i am using the below code for displaying
listview and i am not able to getting the onlistitemclick events for
further ui's. pleas help me.


package com.List;



import android.app.Activity;
import android.app.AlertDialog;
import android.app.ListActivity;
import android.content.ContentUris;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.DialogInterface.OnClickListener;
import android.database.Cursor;
import android.database.DataSetObserver;
import android.os.Bundle;
import android.provider.Contacts.People;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.SimpleAdapter.ViewBinder;
import android.view.View;
import android.view.ViewGroup;

public class HelloListView extends ListActivity {
    private static final String[] Cities = null;

    ListActivity getListView = null;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          final String[] Cities = new String[]
{"Hyderabad","Bangalore","Chennai","Delhi","Kolkata"

          };
                  setListAdapter((ListAdapter) new ArrayAdapter<String>(this,
                           android.R.layout.simple_list_item_1, Cities));
          getListView().setTextFilterEnabled(true);

    }

   public  void onListItemClick(AdapterView parent, View v, int
position, long id) {

}
}


Regards
Bhas

--~--~---------~--~----~------------~-------~--~----~

3. bar code scanning hypothetical question..

4. Two Problems with ExpandableListView

5. Adding a shortcut to Programs (launchers) programmatically

6. interrupt dialog

7. SurfaceFlinger and SurfaceComposerClient problem.