I'm basically writing a code to copy the HTML source of a site and save it in to a text file im half done, got a couple of things to twick in the code but the one place where i can see my self getting stuck is where the java program will try to go and code the contents of the webpage but wont be able to because it will not be authorized to do so
i was wonder weather there was a way i could authenticate the program by maybe hard coding the required user and pass in to the code then like it logs on its self and continues to do what it has to do, i should also add that there multiple pages that it has to copy so if it can store cookies like a browser it would be great to avoid having to re-authenticate
(sorry for the bad spelling and grammar)
thanks guys in advance
If you have specific url for specific use, you can store to the Database and at runtime do the work.
You have mentioned about storing first successful authetication in the cookie. You can store it, but browser may be disabled the cookie.
For this thing, you can use the "USER-PROFILE" folder (in Run , type "USER-PROFILE", you will get this folder).
You can store successful authetication related data to file(you have to create by own) of this folder. You can create and write using Java script.
When user is first time authenticated,write that user name to the file created in User-Profile folder.
jagrutkumar dalwadi wrote:When user is first time authenticated,write that user name to the file created in User-Profile folder.
If you find some difficulty, let me know.
right i have 2 questions
1. user-profile where is this, is the a windows folder like a little explanations about this older and what it is and what it does ?
2. also i am coding in java from net-beans i cant code in java-script yet so will this auto use java script to interact with the website ?