![]() |
Get content from dynamic url
Hello.
I'm trying to get the content of a website, and store it in a variable. I have tryed this code: PHP Code:
But if i run the php script on server the checkin and checkout take no effect, so the website ask me for the checkin and checkout date. It is possible to get the website content with checkin and checkout that i've wrote in the url? |
it seems more like you have to submit the form for searching checkin times and get the results from that. For that file_get_contents falls a little short (maybe not with stream context, but I haven't use those) I would recommend using curl to submit a form with the filled parameters and get the webpage result for that.
|
I got 404 on this URL ie i got this message "Page not found
We are sorry, we could not find the page that you were looking for." |
You do the request with a Get but the server answer to a Post, as tony says you should use cUrl.
|
| All times are GMT. The time now is 11:55 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0