How do you get HTML response using php POST shape?
-
Please indicate how to get the HTML DOM element with the price http://www.k-rauta.ru/ ♪
I need to get the price of the product from the url page on this product. Here's one of those pages-- http://www.k-rauta.ru/pages/product.aspx?pid=000000000501204050
There is an HTML POST form that receives information on the product. I have no idea how to get the price of this HTML form from a remote server, using php and cURL.
I'll get a decision on the php with cURL, or a decision through some php library, or any other solution that can be applied to the Linux server.
To accomplish my task, it was necessary to hand over the bundles of the session. Details https://stackoverflow.com/questions/34295757/how-to-get-the-response-of-form-with-post-method-by-curl/34298449?noredirect=1 ♪
-
You can use the banal.
file_get_contents
And then work with the house as a model using a library, for example http://sourceforge.net/projects/simplehtmldom/ or similar, written enough.