gps221 Posted December 26, 2011 Share Posted December 26, 2011 Hello I post this message because I am trying to extract information from a site that has the same system of visacentral, I cannot give access to this system because is in a Intranet, but the system is more or less the same that this site: visacentral.co.uk/ajax/ajax.visaPopup.php?passport_from=BOL&traveling_to[0]=BHS&traveling_for%5B0%5D=T&traveling_to%5B1%5D=&traveling_for%5B1%5D=&traveling_to%5B2%5D=&traveling_for%5B2%5D=&traveling_to%5B3%5D=&traveling_for%5B3%5D=&account_number=BRITTRAV&account_exists=N The problem that I have either I use CURL or file_get_contents then they have a redirection and I cannot get the final content from http://visacentral.co.uk/requirements.php Someone has any idea how this can be done? Thank you very much!! Quote Link to comment https://forums.phpfreaks.com/topic/253836-extract-information-from-a-site/ Share on other sites More sharing options...
QuickOldCar Posted December 26, 2011 Share Posted December 26, 2011 That site is using ajax to display the results, basically you need to interpolate the same way as in a browser does it. Using php along with curl will not do that. Also, you should have the sites permission to obtain their content. Quote Link to comment https://forums.phpfreaks.com/topic/253836-extract-information-from-a-site/#findComment-1301372 Share on other sites More sharing options...
gps221 Posted December 28, 2011 Author Share Posted December 28, 2011 QuickOldCar thank you very much for your answer I know that I need permission to get information, I won't stole information and I don't need all this visas information it is to use as an example of a site which is online. Can you give me more information on how to interpolate the script, I couldn't find a way to do it. Thank you very much again!. Quote Link to comment https://forums.phpfreaks.com/topic/253836-extract-information-from-a-site/#findComment-1301798 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.