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 ASP.NET 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"

Edit: Could also us VBS file for cscript.exe

Taidot: Java, Visual Basic

Näytä lisää: pass credentials url, url credentials, http credentials url, credentials url, pass credentials java, java pass credentials, http url credentials, adding credentials url, aspnet credentials url, pass credentials url using java, credentials url string, credentials url java, pass credentials intranet, java url network credentials, intranet credentials, pass credentials url java, url credentials java, http request credentials url, credentials url http, pass network credentials java, pass userid password url, template for algorithm, template algorithm, string algorithm, static algorithm

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 [url removed, login to view]

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