•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 330,158 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,002 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2744 | Replies: 6
![]() |
•
•
Join Date: Sep 2005
Posts: 7
Reputation:
Rep Power: 0
Solved Threads: 0
Hi all, I'm very, very new to Java / Javascript, but have a couple of years experience with other programming languages. - (inexperience may explain a novicey question
However, I wanted to learn a web-enabled language to capture data from certain websites to build systems for my "sports-betting" hobby.
I've only picked up Java about a week ago, but i've managed to build a couple of programs that do what i need. However, certain sites require you to "log in" before you can access pages. So whilst I can see this information myself, my little java program cannot.
For example the racing post website (www.racingpost.co.uk) i have a username: nutricomms and password: vinery (its free to register, so no real need to hide the details). I can't get my little program to access these pages.
I have no idea where to start in looking into this problem and wondered if
a) this is the correct place to ask?
b) if anyone can give me any pointers on how to solve my little problem
any help will be gratefully received.
thanks
However, I wanted to learn a web-enabled language to capture data from certain websites to build systems for my "sports-betting" hobby.
I've only picked up Java about a week ago, but i've managed to build a couple of programs that do what i need. However, certain sites require you to "log in" before you can access pages. So whilst I can see this information myself, my little java program cannot.
For example the racing post website (www.racingpost.co.uk) i have a username: nutricomms and password: vinery (its free to register, so no real need to hide the details). I can't get my little program to access these pages.
I have no idea where to start in looking into this problem and wondered if
a) this is the correct place to ask?
b) if anyone can give me any pointers on how to solve my little problem
any help will be gratefully received.
thanks
Jake,
That depends really on what language you're using. You mention both Java and JavaScript. They aren't interchangeable, and are indeed very different languages.
Plus, I'm not clear on your question. No language will let you "access" a password protected page. What exactly are you trying to do, and with which programming language?
That depends really on what language you're using. You mention both Java and JavaScript. They aren't interchangeable, and are indeed very different languages.
Plus, I'm not clear on your question. No language will let you "access" a password protected page. What exactly are you trying to do, and with which programming language?
•
•
Join Date: Aug 2004
Posts: 49
Reputation:
Rep Power: 4
Solved Threads: 1
Javascript is definitely NOT the way to go to password protect pages. Since the Javascript source is available for your visitors to read it is not hard to reverse engineer the code to work out what the password must be with most such scripts.
•
•
Join Date: Sep 2005
Posts: 7
Reputation:
Rep Power: 0
Solved Threads: 0
guys,
thanks for the replies.
tgreer, in response. (this will actually answer my second question myself, so i'm feeling a bit foolish).
I'm currently writing a few Java programs to scrape a website. unfortunately i've hit an issue with the racingpost website, as some of the pages are directed to a "restricted access" page. Its free subscription, so i've already got an account with them, but i have no idea about how to write the java to "feed" the username / password to the racingpost server.
i only started learning java a few days ago, and (embarassingly) i wasn't sure when i posted the question, whether the problem was going to be understanding the "javascript" in the website or the "java" code that i'm writing to send the details. I'm not actually sure what code is behind the scenes of the racingpost website any more either or how many interactions there are between the racingpost and my browser!)
can you confirm that i really need to post this into the java forum.....and if so i'll let it slide quietly off the bottom
(i also think i need to understand more of what i'm doing before i post the question again anywhere!!)
thanks
jake
thanks for the replies.
tgreer, in response. (this will actually answer my second question myself, so i'm feeling a bit foolish).
I'm currently writing a few Java programs to scrape a website. unfortunately i've hit an issue with the racingpost website, as some of the pages are directed to a "restricted access" page. Its free subscription, so i've already got an account with them, but i have no idea about how to write the java to "feed" the username / password to the racingpost server.
i only started learning java a few days ago, and (embarassingly) i wasn't sure when i posted the question, whether the problem was going to be understanding the "javascript" in the website or the "java" code that i'm writing to send the details. I'm not actually sure what code is behind the scenes of the racingpost website any more either or how many interactions there are between the racingpost and my browser!)
can you confirm that i really need to post this into the java forum.....and if so i'll let it slide quietly off the bottom
(i also think i need to understand more of what i'm doing before i post the question again anywhere!!)
thanks
jake
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
•
•
•
•
ajax asp blogging botnet breach child protection crack daniweb data protection database developer development ego family firefox fun google government home html internet javascript microsoft monitoring software msdn news office password pedophiles playstation popularity ps3 security site software sql trojan vista web website
- Password protection for Website (PHP)
- Password Protection from a txt.file (HTML and CSS)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: What does Animate.js do?
- Next Thread: Making T.Greer's JavaScript-synthesised combobox dynamic



Linear Mode