• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

get IOException over Proxy

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am new in socket programming.
I only want to receive a document from an URL.
Doing it in the intranet works fine. But doing it over the proxy from the WWW it gives an IOException.
I suppose the proxy is the cause for it.
Any idea what I have to do??
Here my simple source:
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dear,
just include two more lines of code and try with it as below. As you are not thrown any Security Excpeption while doing this, there is no problem as such in using a proxy. But, may be this is the problem with your Buffer size on the network which may be causing this. so try with this..
try
{
URLConnection con=url.openConnection();
InputStream is=con.getInputStream();
/*
now pass this "is" into the constructor of BufferedReader and also give the buffer size say around 512
*/
}
and try with this and please let me know tyhe result at [email protected]
Regards,
karthik
 
Why should I lose weight? They make bigger overalls. And they sure don't make overalls for tiny ads:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic