[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-29 Thread psaltamontes
I found the solution to capture the requests, I have to put in the baseUrl parameter the address of the android proxy. webview.loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String failUrl) For example, if the android proxy service is listening the port 8282,

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-22 Thread psaltamontes
When I think that I'm near to do that I want, there is something that not works :(. ¡I have achieved send my modified HTTP request! Well, it works, but only the first time :). I have used the WebView, DefaultHttpClient, HttpGet and HttpResponse classes to do it. WebView : to see the webpages. D

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-22 Thread Alexey Krasnoriadtsev
GIT is the repository where all android code is. for Browser, here is the specific link: http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a=summary On Jun 21, 1:02 pm, psaltamontes wrote: > @Alexey : > > What's the meaning of "git"? > > @ Hamy : > > ¡ I needed this line :) !

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-21 Thread psaltamontes
@Alexey : What's the meaning of "git"? @ Hamy : ¡ I needed this line :) ! -> resp.getEntity().writeTo(bao); I'm sure that the code that you are put help me a lot. @ Raphael : I used Google before put my question here. If you search this --> http://www.google.com/search?q=set+proxy+for+andr

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-20 Thread Raphael
On Fri, Jun 19, 2009 at 7:57 AM, psaltamontes wrote: > > Yes, I want to say request :), sorry , I need improve my English. > > I don't want my application modify the settings of the browser, the > idea is that the user configure the proxy of the browser and install > my application. This applicati

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-20 Thread Hamy
Not sure if this will help, but I hope so. This is code I found in an application my research group is working on, and it is under apache v2 license. Thanks, Hamy Log.v(LOG_LABEL, LOG_MSG_PREFIX + "Entering HTTPPoster.doAccidentPost"); final HttpClient c = new De

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-20 Thread Hamy
Sorry, realized right after I sent that that the imports might be useful. H import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.ByteArra

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-20 Thread Alexey Krasnoriadtsev
You can create your own Browser application, that will allow proxy configuration. You can also take original Browser app as the base (it's available in git). Those users who need proxy will be able to install your browser application and use it. On Jun 19, 9:44 am, psaltamontes wrote: > Here,

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-19 Thread psaltamontes
Here, http://groups.google.com/group/android-developers/browse_thread/thread/1bd1c80127510b16 there is information about classes that I can use to modify HTTP requests. I will try something with this classes. On 19 jun, 17:34, psaltamontes wrote: > Do you know/think if this option will be in t

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-19 Thread psaltamontes
Do you know/think if this option will be in the future? Now, I'm trying to do something with a webview and webviewclient. But I don't know how to send a "RAW HTTP request" using these classes. I can send/receive RAW HTTP with sockets, but I don't know how to link these sockets with the webview.

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-19 Thread Mark Murphy
> Yes, I want to say request :), sorry , I need improve my English. > > I don't want my application modify the settings of the browser, the > idea is that the user configure the proxy of the browser and install > my application. This application is a service that listen the HTTP > requests and sen

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-19 Thread psaltamontes
Yes, I want to say request :), sorry , I need improve my English. I don't want my application modify the settings of the browser, the idea is that the user configure the proxy of the browser and install my application. This application is a service that listen the HTTP requests and send to the In

[android-developers] Re: Capture the Android's browser HTTP petitions

2009-06-18 Thread Mark Murphy
> I need capture the Android's browser HTTP petitions. I think you mean "request", not "petition". > In PC to capture the HTTP petitions is easy, I change the browser > configuration, I put localhost and a port () and it's works. But, > in Android I don't know how to change the browser confi