Hello everybody. My question is does anybody know any script commands that will allow me retrieve information from an website that has a user name and password? For example, I write a script that ask the user to enter in a user name and password, then the script goes to the website to query some information and the user doesn't need to go to the website himself to enter in the user name and password.
Dio1080
0
Light Poster
Recommended Answers
Jump to PostWell if that website that php re-enters the password in uses $_GET tags and not $_POST tags then you can simply use the file_get_contents() function to retieve the information. If however the external website uses $_POST tags then you will need to use curl.
So the basic usage of file_get_contents …
Jump to PostThanks guys, one more question, does anybody know the Visual Basic Script version of what he typed up above?
Who typed what above? If your refering the the script I posted earlier that is a php script which just retrieves the file/url contents.
All 6 Replies
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
kaleshwar
0
Newbie Poster
Dio1080
0
Light Poster
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
Dio1080
0
Light Poster
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.