HI!

On Thu, Sep 30, 2010 at 1:56 AM, Prajakta Shitole <prajakt...@gmail.com>wrote:

> Hi,
> Thanks for your reply. I am using HttpURLConnection to access data from
> servers. Will look into the details that you have mentioned below.
>
>

You could find out, how the Proxy Authentication has to be set in an Android
device?

regards
-Nitin

> Thanks,
> Prajakta
>
>
> On Wed, Sep 29, 2010 at 1:11 PM, ADRA <dche...@gmail.com> wrote:
>
>> I'm doing HTTPClient (Through the API's) on a carrier proxy just fine
>> without needing to fiddle with anything. Are you attempting to do
>> HTTPClient or socket programming or what? My carrier doesn't use
>> authentication, so maybe its something to do with authenticated
>> proxies. *Shrugs*
>>
>> Just briefly reading over the socket implementation, it has a
>> workaround to enable explicit proxy access.
>>
>>   public Socket (Proxy proxy)
>>   Since: API Level 1
>>   Creates a new unconnected socket using the given proxy type. When a
>> SocketImplFactory is defined it creates the internal socket
>> implementation, otherwise the default socket implementation will be
>> used for this socket.
>>
>>   Example that will create a socket connection through a SOCKS proxy
>> server:
>>   Socket sock = new Socket(new Proxy(Proxy.Type.SOCKS, new
>> InetSocketAddress("test.domain.org", 2130)));
>>   Parameters
>>   proxy        the specified proxy for this socket.
>>
>> The proxyselector class is designed to allow for the system to
>> enumerate the available proxies that the system is using, and as long
>> as android is passing the APN proxy settings down to your application,
>> you should just implement a proxyselector / socket shim if you needed
>> to do proxy passthrough. If I recall in java, one such proxy instance
>> was DIRECT which was always available as a 'no proxy' option.
>>
>> --
>> 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<android-developers%2bunsubscr...@googlegroups.com>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Reply via email to