Hi,
String websiteData = null;
DefaultHttpClient client = new DefaultHttpClient();
URI uri = new URI(url);
HttpGet method = new HttpGet(uri);
HttpHost proxy = new HttpHost(proxy, port);
Pratap,
could you explain in more details how did you solve this problem?
On 26 фев, 15:27, Pratap pratap.sola...@gmail.com wrote:
Problem Solved...we need to the following lines of
code.
DefaultHttpClient client = new DefaultHttpClient();
Problem Solved...we need to the following lines of
code.
DefaultHttpClient client = new DefaultHttpClient();
HttpHost proxy = new HttpHost(http_proxy:ip_address, port_no,
protocol);
client.getParams().setParameter
(ConnRoutePNames.DEFAULT_PROXY,
if you want to set connection time out use bellow code
int TIMEOUT_MILLISEC = 1; //=10sec
HttpParams my_httpParams = new BasicHttpParams();;
HttpConnectionParams.setConnectionTimeout(my_httpParams, TIMEOUT_MILLISEC);
//set conn time out
HttpConnectionParams.setSoTimeout(my_httpParams,
Do you have permission to access the Internet declared in your
manifest?
On Feb 25, 10:53 am, Pratap pratap.sola...@gmail.com wrote:
I'm developing an app which needs to connect to the internet, but when
i send a request using DefaultHtpClient.execute() method it takes 2-3
minutes and then
Thanks for your suggestion. but its still not workingNow it
says
02-26 00:37:55.890: WARN/System.err(578): java.net.SocketTimeoutException:
Socket is not connected
Do u know any thing abt that.and another thing , the exception s
being thrown only when i try to connect to
6 matches
Mail list logo