Results 1 to 5 of 5
- 07-01-2011, 10:51 PM #1
Member
- Join Date
- Jun 2011
- Posts
- 9
- Rep Power
- 0
How to go to a website using variables then read whats on the website?
I am trying to make a simple authentication program, in which (I want) my program to go to a url using variables then read what my website says and if its true then do something
EX: mywebsite.com?authentication=variable1
Then my website will echo either 'YES' or 'NO' depending on if variable1 equals what I want it the equal.
PHP Example Code:
Java Code:<?php $auth = $_GET['authentication']; if($auth == '123' || $auth == '234'){ echo 'YES'; } else{ echo 'NO'; } ?>
- 07-01-2011, 10:57 PM #2
Look at using the HTTPURLConnection class for the client.
Do you have an existing website/server?
- 07-01-2011, 11:00 PM #3
Member
- Join Date
- Jun 2011
- Posts
- 9
- Rep Power
- 0
Not existing, im away from my desktop, but I can get one easily and implement my code into it.
- 07-01-2011, 11:08 PM #4
Is that it? No further questions?
- 07-02-2011, 03:28 AM #5
Member
- Join Date
- Apr 2011
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
website
By rithish in forum Java ServletReplies: 0Last Post: 04-24-2011, 09:13 PM -
Want to use OOP on my website
By DoubleDee in forum New To JavaReplies: 23Last Post: 09-11-2010, 12:55 AM -
What do I need to use this website?
By ZachVK in forum Java AppletsReplies: 27Last Post: 06-24-2010, 08:15 PM -
How to download website (Get all link in website)
By finalmem in forum Advanced JavaReplies: 0Last Post: 11-12-2008, 08:43 AM -
How do i read from a website with a certificate??
By karl in forum Advanced JavaReplies: 0Last Post: 07-12-2007, 04:25 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks