Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java Micro Edition
Search Coderanch
Advance search
Google search
Register / Login
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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java Micro Edition
HTTP/1.0 403 Forbidden
Kris Reid
Ranch Hand
Posts: 247
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
private InputStream getConection() throws IOException { HttpConnection connection = (HttpConnection)Connector.open(WEB_URL); String authString = "username" + ":" + "password"; String auth = "Basic " + new Base64Coder().encode(authString.getBytes()); connection.setRequestProperty("Proxy-Authorization", auth); return connection.openInputStream(); }
This code work perfect with a local webserver (localhost:8080)
But I can't access any other servers.
Does anyone know how to connect through a proxy?
Thanks
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Java Url with proxy conf.
howto connect a webservice via a proxy server ?
No trusted certificate found : when opeing a ssl connection from behind the proxy.
HTTPURLCONNECTION
how to communicate with the ASP through MIDlet
More...