Jump to content

[SOLVED] [HELP]Multiple Redirects


PersonPerson

Recommended Posts

I need to get "http://www.example.com/index.php?do=thing"s full contents and store them and return. Include(), require() don't work. The only method that works is header("Location: "). I need to, somehow, go to the page using header, store it's entire contents, and go back to the script that executed AND continue executing some other code. I've searched plenty with no results.

 

Thanks in advance for your help.

Link to comment
https://forums.phpfreaks.com/topic/88115-solved-helpmultiple-redirects/
Share on other sites

Already tried file_get_contents() with no success. And could I get an example on how I would use sockets in this situation? I mean, the sending GET data to a file in a host's subdirectory. As far as I could understand, sockets could manage data between hosts, not manage files. Correct me if I'm wrong.

It would also be worthy to point out that the data has to be parsed via the remote server. The server won't give me the data if it sees http://mySite.com retrieving it. It will only give the data to http://www.example.com, which means I have to access it directly instead of including it or calling it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.