So we know how to do http get and post connections.
http://exampledepot.com/egs/java.net/pkg.html
And we want to pass credentials(uname,passwd) to any web server to access the url or get the response.
And we can’t pass it as post parameters.
So have a look @ this very simple code which does it all.
So we know how to do http get and post connections. http://exampledepot.com/egs/java.net/pkg.html And we
Share
To encode the credentials I am using a simple external class named “BasicAuth.java” which u can just add in to your project.
BasicAuth.java