[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,
the baseUrl parameter will be 10.0.2.2:8282. (10.0.2.2 : is the
emulator localhost address). loadDataWithBaseURL sends the requests to
this address and then my proxy can process the request.


On 22 jun, 21:49, psaltamontes mcg2...@gmail.com wrote:
 When I think that I'm near to do that I want, there is something that
 not works :(.

 ¡I have achieved send my modifiedHTTPrequest! 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.
 DefaultHttpClient : to send the request.
 HttpGet : to do the request and add my header (.addHeader())
 HttpResponse : to store the response.

 When I have the web server response I send to the WebView, I use
 loadDataWithBaseURL.

 WebView.loadDataWithBaseURL : to load the response, and here is my
 problem. If the page has images, for example, the method sendsHTTPGETrequest. 
 This is OK, but the problem is that the petitions don't
 have my header and the server don't accept.

 Is possible to modify the petitions that loadDataWithBaseURL does?

 @ Alexey :

 I have download the browser, this code is complicated for me. I don't
 know where to begin. But I will look calmly.

 On 22 jun, 19:17, Alexey Krasnoriadtsev ale...@agilefusion.com
 wrote:

  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...

  On Jun 21, 1:02 pm, psaltamontes mcg2...@gmail.com wrote:

   @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+android+web+browser

   The information that Google found is about change the general/main
   proxy, I only want redirect the browser's traffic.

   Thank you people.

   On 21 jun, 00:56, Raphael r...@android.com wrote:

On Fri, Jun 19, 2009 at 7:57 AM, psaltamontesmcg2...@gmail.com 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 application is a service that listen theHTTP
 requests and send to the Internet.

This might help:
 http://www.google.com/search?q=set+proxy+for+android+web+browser

R/

 I want capture theHTTPrequest and modify the headers because, in the
 header, I put a number to identify the client that connect to my
 webserver, doing this, the user don't have to put an user name and a
 password. I have written the code to do this, in PC works, but in
 Android I don't know how togetthis behaviour.

 How can I do?

 On 18 jun, 21:14, Mark Murphy mmur...@commonsware.com wrote:
  I need capture the Android's browserHTTPpetitions.

 I think you mean request, not petition.

  In PC to capture theHTTPpetitions 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 configuration.

 I would be rather surprised if they allowed applications to adjust 
 the
 proxy server settings of the browser application. That would be a 
 way for
 spyware to attack the user.

 For the emulator, you can set up a proxy server from outside the 
 emulator
 environment itself:

http://developer.android.com/guide/developing/tools/emulator.html#proxy

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 2.0 
 Available!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 mcg2...@gmail.com wrote:
 @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+android+web+browser

 The information that Google found is about change the general/main
 proxy, I only want redirect the browser's traffic.

 Thank you people.

 On 21 jun, 00:56, Raphael r...@android.com wrote:

  On Fri, Jun 19, 2009 at 7:57 AM, psaltamontesmcg2...@gmail.com 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 application is a service that listen theHTTP
   requests and send to the Internet.

  This might help:
   http://www.google.com/search?q=set+proxy+for+android+web+browser

  R/

   I want capture theHTTPrequest and modify the headers because, in the
   header, I put a number to identify the client that connect to my
   webserver, doing this, the user don't have to put an user name and a
   password. I have written the code to do this, in PC works, but in
   Android I don't know how to get this behaviour.

   How can I do?

   On 18 jun, 21:14, Mark Murphy mmur...@commonsware.com wrote:
I need capture the Android's browserHTTPpetitions.

   I think you mean request, not petition.

In PC to capture theHTTPpetitions 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 configuration.

   I would be rather surprised if they allowed applications to adjust the
   proxy server settings of the browser application. That would be a way for
   spyware to attack the user.

   For the emulator, you can set up a proxy server from outside the emulator
   environment itself:

  http://developer.android.com/guide/developing/tools/emulator.html#proxy

   --
   Mark Murphy (a Commons Guy)http://commonsware.com
   _The Busy Coder's Guide to Android Development_ Version 2.0 Available!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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.
DefaultHttpClient : to send the request.
HttpGet : to do the request and add my header (.addHeader())
HttpResponse : to store the response.

When I have the web server response I send to the WebView, I use
loadDataWithBaseURL.

WebView.loadDataWithBaseURL : to load the response, and here is my
problem. If the page has images, for example, the method sends HTTP
GET request. This is OK, but the problem is that the petitions don't
have my header and the server don't accept.

Is possible to modify the petitions that loadDataWithBaseURL does?

@ Alexey :

I have download the browser, this code is complicated for me. I don't
know where to begin. But I will look calmly.


On 22 jun, 19:17, Alexey Krasnoriadtsev ale...@agilefusion.com
wrote:
 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...

 On Jun 21, 1:02 pm, psaltamontes mcg2...@gmail.com wrote:

  @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+android+web+browser

  The information that Google found is about change the general/main
  proxy, I only want redirect the browser's traffic.

  Thank you people.

  On 21 jun, 00:56, Raphael r...@android.com wrote:

   On Fri, Jun 19, 2009 at 7:57 AM, psaltamontesmcg2...@gmail.com 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 application is a service that listen theHTTP
requests and send to the Internet.

   This might help:
    http://www.google.com/search?q=set+proxy+for+android+web+browser

   R/

I want capture theHTTPrequest and modify the headers because, in the
header, I put a number to identify the client that connect to my
webserver, doing this, the user don't have to put an user name and a
password. I have written the code to do this, in PC works, but in
Android I don't know how to get this behaviour.

How can I do?

On 18 jun, 21:14, Mark Murphy mmur...@commonsware.com wrote:
 I need capture the Android's browserHTTPpetitions.

I think you mean request, not petition.

 In PC to capture theHTTPpetitions 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 configuration.

I would be rather surprised if they allowed applications to adjust the
proxy server settings of the browser application. That would be a way 
for
spyware to attack the user.

For the emulator, you can set up a proxy server from outside the 
emulator
environment itself:

   http://developer.android.com/guide/developing/tools/emulator.html#proxy

--
Mark Murphy (a Commons Guy)http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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+android+web+browser

The information that Google found is about change the general/main
proxy, I only want redirect the browser's traffic.

Thank you people.

On 21 jun, 00:56, Raphael r...@android.com wrote:
 On Fri, Jun 19, 2009 at 7:57 AM, psaltamontesmcg2...@gmail.com 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 application is a service that listen theHTTP
  requests and send to the Internet.

 This might help:
  http://www.google.com/search?q=set+proxy+for+android+web+browser

 R/



  I want capture theHTTPrequest and modify the headers because, in the
  header, I put a number to identify the client that connect to my
  webserver, doing this, the user don't have to put an user name and a
  password. I have written the code to do this, in PC works, but in
  Android I don't know how to get this behaviour.

  How can I do?

  On 18 jun, 21:14, Mark Murphy mmur...@commonsware.com wrote:
   I need capture the Android's browserHTTPpetitions.

  I think you mean request, not petition.

   In PC to capture theHTTPpetitions 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 configuration.

  I would be rather surprised if they allowed applications to adjust the
  proxy server settings of the browser application. That would be a way for
  spyware to attack the user.

  For the emulator, you can set up a proxy server from outside the emulator
  environment itself:

 http://developer.android.com/guide/developing/tools/emulator.html#proxy

  --
  Mark Murphy (a Commons Guy)http://commonsware.com
  _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 mcg2...@gmail.com wrote:
 Here,

 http://groups.google.com/group/android-developers/browse_thread/threa...

 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 mcg2...@gmail.com wrote:

  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.

  Any idea?

  Thanks.

  On 19 jun, 17:14, Mark Murphy mmur...@commonsware.com 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 application is a service that listen the HTTP
requests and send to the Internet.

   Hmmm...I do not see where users can set their proxy server, either.

   --
   Mark Murphy (a Commons Guy)http://commonsware.com
   _The Busy Coder's Guide to Android Development_ Version 2.0 Available!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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.ByteArrayEntity;
import org.apache.http.impl.client.DefaultHttpClient;

On Jun 19, 10:34 am, psaltamontes mcg2...@gmail.com wrote:
 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.

 Any idea?

 Thanks.

 On 19 jun, 17:14, Mark Murphy mmur...@commonsware.com 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 application is a service that listen the HTTP
   requests and send to the Internet.

  Hmmm...I do not see where users can set their proxy server, either.

  --
  Mark Murphy (a Commons Guy)http://commonsware.com
  _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 DefaultHttpClient();
final HttpPost post = new HttpPost(SERVER + PATH);
post.addHeader(Content-Type, 
application/x-www-form-urlencoded);

StringBuffer params = new StringBuffer();

// Create the parameter string
params.append(type=accidentuser=+androidid+time=+ timeStr
+speed=+speedStr+dec=+decStr+lat=
+ lat + lon=+lon);


// Add the parameters
Log
.v(LOG_LABEL, LOG_MSG_PREFIX + Created 
parameter string: 
+ params);
post.setEntity(new 
ByteArrayEntity(params.toString().getBytes()));

// Do it
Log.i(LOG_LABEL, LOG_MSG_PREFIX + Executing post to  + SERVER 
+
PATH);
Log.d(LOG_LABEL, LOG_MSG_PREFIX + Spawning thread for HTTP 
post);
new Thread(new Runnable() {

public void run() {
HttpResponse resp = null;
try {
resp = c.execute(post);
ByteArrayOutputStream bao = new 
ByteArrayOutputStream();
resp.getEntity().writeTo(bao);
Log.d(LOG_LABEL, LOG_MSG_PREFIX + 
Response from server: 
+ new 
String(bao.toByteArray()));
} catch (ClientProtocolException e) {
Log.e(LOG_LABEL, LOG_MSG_PREFIX
+ 
ClientProtocolException executing post: 
+ e.getMessage());
} catch (IOException e) {
Log.e(LOG_LABEL, LOG_MSG_PREFIX
+ IOException writing 
to ByteArrayOutputStream: 
+ e.getMessage());
} catch (Exception e) {
Log.e(LOG_LABEL, LOG_MSG_PREFIX
+ Other Exception of 
type: + e.getClass());
Log.e(LOG_LABEL, LOG_MSG_PREFIX + The 
message is: 
+ e.getMessage());
}

if (resp != null  
resp.getStatusLine().getStatusCode() == 200) {
okRun.run();
}
}

}).start();
Log.d(LOG_LABEL, LOG_MSG_PREFIX + Thread for HTTP post 
started);


On Jun 19, 10:34 am, psaltamontes mcg2...@gmail.com wrote:
 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.

 Any idea?

 Thanks.

 On 19 jun, 17:14, Mark Murphy mmur...@commonsware.com 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 application is a service that listen the HTTP
   requests and send to the Internet.

  Hmmm...I do not see where users can set their proxy server, either.

  --
  Mark Murphy (a Commons Guy)http://commonsware.com
  _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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

2009-06-20 Thread Raphael

On Fri, Jun 19, 2009 at 7:57 AM, psaltamontesmcg2...@gmail.com 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 application is a service that listen the HTTP
 requests and send to the Internet.

This might help:
  http://www.google.com/search?q=set+proxy+for+android+web+browser

R/


 I want capture the HTTP request and modify the headers because, in the
 header, I put a number to identify the client that connect to my
 webserver, doing this, the user don't have to put an user name and a
 password. I have written the code to do this, in PC works, but in
 Android I don't know how to get this behaviour.

 How can I do?

 On 18 jun, 21:14, Mark Murphy mmur...@commonsware.com wrote:
  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 configuration.

 I would be rather surprised if they allowed applications to adjust the
 proxy server settings of the browser application. That would be a way for
 spyware to attack the user.

 For the emulator, you can set up a proxy server from outside the emulator
 environment itself:

 http://developer.android.com/guide/developing/tools/emulator.html#proxy

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 Internet.

I want capture the HTTP request and modify the headers because, in the
header, I put a number to identify the client that connect to my
webserver, doing this, the user don't have to put an user name and a
password. I have written the code to do this, in PC works, but in
Android I don't know how to get this behaviour.

How can I do?

On 18 jun, 21:14, Mark Murphy mmur...@commonsware.com wrote:
  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 configuration.

 I would be rather surprised if they allowed applications to adjust the
 proxy server settings of the browser application. That would be a way for
 spyware to attack the user.

 For the emulator, you can set up a proxy server from outside the emulator
 environment itself:

 http://developer.android.com/guide/developing/tools/emulator.html#proxy

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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.

Any idea?

Thanks.

On 19 jun, 17:14, Mark Murphy mmur...@commonsware.com 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 application is a service that listen the HTTP
  requests and send to the Internet.

 Hmmm...I do not see where users can set their proxy server, either.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 send to the Internet.

Hmmm...I do not see where users can set their proxy server, either.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 mcg2...@gmail.com wrote:
 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.

 Any idea?

 Thanks.

 On 19 jun, 17:14, Mark Murphy mmur...@commonsware.com 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 application is a service that listen the HTTP
   requests and send to the Internet.

  Hmmm...I do not see where users can set their proxy server, either.

  --
  Mark Murphy (a Commons Guy)http://commonsware.com
  _The Busy Coder's Guide to Android Development_ Version 2.0 Available!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 configuration.

I would be rather surprised if they allowed applications to adjust the
proxy server settings of the browser application. That would be a way for
spyware to attack the user.

For the emulator, you can set up a proxy server from outside the emulator
environment itself:

http://developer.android.com/guide/developing/tools/emulator.html#proxy

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---