Closed

Quick piece of Java code to login to a site

I am working on integrating a HTTP API where usually you login to a site and can control locks, into a local java app that allows the "house" to preform the controls rather than the person specifically (so the whole house could be locked/unlocked without needing to click on each lock etc.)

I am in need of a quick couple of Java blocks of code to preform the following functions:

private static class login {

public static boolean status() {

/* We need to go to the login uri and check the redirect url

* if it is a specific url we are logged in and return true

* if it is another specific url we are not logged in and return false

*/

}

public static boolean process() {

/* We need to go to the signin uri,

* fill in the username and password,

* submit

* check whether the login worked correctly

* send success or error message to: [url removed, login to view](<message>);

* return true/false depending on success

* NOTE: I don't know what i'm talking about SO if we need to remember the session id or if it makes more sense to

* return the login status with something other than true/false feel free to change from boolean to string etc.

*/

}

}

currently available variables you will need:

public static final String BASE_URI = "<the site url>";

public static final String LOGIN_URI = BASE_URI + "/login";

public static final String SIGNIN_URI = BASE_URI + "/signin";

I had been leaning towards a HttpUrlConnection solution although am happy to hear of whatever you believe to be the simplest solution.

Want this done as quickly as possible so don't delay in putting forward your unique bid (copy/paste generic proposals will be ignored).

Skills: Java

See more: java web application login example, java logger example, java logging to file, coding practice java, codingbat java, java logger tutorial, logger in java example log4j, login page code in java using servlets, simple piece java code, java code login logout, java code login yahoo email, java code increase site visits, java code project road violation information vehicle free, sourse code matrimonial site java, login site java, simple java code login, login site using code, java code site redirect, java login site, free java code ticket reservation system

About the Employer:
( 37 reviews ) Bray Park, Australia

Project ID: #15985603

13 freelancers are bidding on average $13/hour for this job

wbslivera

Hello, I have done over 50 similar projects with various techs such as selenium, jaunt etc. I am ready to help you please provide more details. I am oracle certified professional java programmer and have [login to view URL] I a More

$6 AUD / hour
(218 Reviews)
6.2
DemonDeveloper

We are team of excellent developers. We have 2 year experience related to your project field. We can do your project and solve your all problems according to your requirements. We have read your description for project More

$5 AUD / hour
(35 Reviews)
4.5
johibkhan

Hi, I believe you don't need use synchronized function/ block to achieve this. I can be solved trhough httpsessions. Please ping me for more technical discussion. Here is my profile. Possess 9 years of professio More

$11 AUD / hour
(11 Reviews)
4.4
kbmanoj

i would like to support here .Thanks!!

$16 AUD / hour
(12 Reviews)
4.5
elbruninh

Hi, i'm interested, could you give me more details please? what is the website? could you send me the login credentials? regards

$13 AUD / hour
(3 Reviews)
3.8
$16 AUD / hour
(8 Reviews)
3.4
urstealth

hi, This can done in python more fast than java. but if you need it in java only then i can still do it. Lets discuss more. thanks

$5 AUD / hour
(4 Reviews)
3.1
mrteic

A proposal has not yet been provided

$55 AUD / hour
(0 Reviews)
0.0
$3 AUD / hour
(0 Reviews)
0.0
mengtangchao

HttpUrlConnection have become based on the experience, I am sure I can do my best, hoping to serve you, thank you

$5 AUD / hour
(0 Reviews)
0.0
jasminbrakmic

I have more than 5 years of software development experience with Java. I have been working for different clients and deliver high quality code by considering different patterns and principles.

$22 AUD / hour
(0 Reviews)
0.0
pyxisneoma

We have 9+ years of experience in JAVA, We have delivered multiple projects with great quality . Let us know when we can start the work. Please connect with us to discuss about your exact need.

$4 AUD / hour
(0 Reviews)
0.0
$2 AUD / hour
(0 Reviews)
0.0