Käynnissä

Pass credentials to intranet url

I am wondering if there is a way to pass the userid and password to a device on my intranet that requires HTTP Authorization when calling a resource. An example url is below. I would like the have the .java template that I can complile using [url removed, login to view] into a .class file that will run using java.exe. I then could change the url, userid, and password when needed. I also need any instructions that I need in configuring my pc to run the app (such as adding ASPNET or NETWORK SERVICE, etc.).

[url removed, login to view]

I have been told that I need to use HttpRequest to Enable [url removed, login to view] to read the HTTP values sent by a client during the Web request.

And the following snippet was suggested for the Authorization, but I need an entire app.

"You will have to pass the userid/password in the HTTP Authorization header. Here’s a little Java snippet that creates the Authorization Header:

public static String getBasicCredentials(String uid, String pwd){

String credentials=uid+":"+pwd;

credentials="Basic "+[url removed, login to view]([url removed, login to view]());

return credentials;

}

public static String getAuthenticationHeader(String uid, String pwd){

if (uid == null || pwd == null){

return null;

}

StringBuffer out=new StringBuffer("Authorization: ");

[url removed, login to view]([url removed, login to view](uid, pwd));

[url removed, login to view]("\r\n");

return [url removed, login to view]();

}

The algorithm is pretty simple:

1. Authorization: Basic credentials

2. credentials = Base64 encoding of (userid:password) … please note the ‘:’ between userid and password"

Taidot: Java, Visual Basic

Näytä lisää: url credentials, credentials url, adding credentials url, aspnet credentials url, credentials url string, credentials url java, java url network credentials, intranet credentials, url credentials java, template algorithm, string algorithm, static algorithm, simple algorithm example, net algorithm, example algorithm, authorization java, asp net resource, algorithm template, algorithm string, algorithm header, algorithm example, calling intranet url java, url string credentials, credentials java url

About the Employer:
( 1 review ) Jacksonville, United States

Projektin tunnus: #429867

Myönnetty käyttäjälle:

bgdnnet

Fixed, final bid for patch over your VBS code.

35 $ USD 1 päivässä
(8 arvostelua)
3.7

4 freelanceria on tarjonnut keskimäärin 59 $ tähän työhön

Shot

I can make it what is necessary for you but is necessary more details.

250 $ USD 60 päivässä
(14 arvostelua)
6.4
marukaran

Hi,I can do this for you,Dont worry i will solve all your problems......

80 $ USD 6 päivässä
(0 arvostelua)
0.0
sandeep7

Hi ! Experts on .Net,windows security, Web security. We have got good experience in implementing security systems for website for windows platform. We will deliver the best ! Sandeep www.sandeepthakur.org

50 $ USD 10 päivässä
(0 arvostelua)
0.0
kolemik

As far as i understand, you need to perform http auth before using shared files? I can write for you java-code and script (cmd, vbs) file. For auth you will be needed to "doubleclick" script-file every time before u Lisää

70 $ USD 7 päivässä
(0 arvostelua)
0.0