tags:

views:

64

answers:

1

I'm trying to get the HTML code of this page: https://bscr.benq-eu.com/portal/serialcheck.cfm?sn=ID77806367002 with javscript using this method http://www.experts-exchange.com/Web%5FDevelopment/Miscellaneous/Q%5F21902549.html and it does not work. I think it is because the web request is done over HTTPS protocol.

How can I solve this?

+1  A: 

You can do an ajax request to a PHP file that uses the CURL functions to get the html of the page (http://it2.php.net/manual/en/book.curl.php).

mck89
so, my web server has to support php and have CURL installed?
Usually the CURL extension is included in php and almost all web servers support php.
mck89
Anyway maybe there are some functions like CURL for other server-side languages, but i think that you cannot do it with a client-side language like javascript
mck89
Client-side javascript for directly retrieving content from a third party website will probably lead to security messages in browsers.
Residuum
how can I parse the HTML after I get it using PHP?
What do you want to do with that html? Anyway i think that you can use something like the PHP DOM extension (http://it2.php.net/manual/en/book.dom.php)
mck89