i have been trying to get the source of a page in php using get_file_contents and curl unfortunately both methods are not working for me. I am trying to use any method that will get the source of this page:
http://www6.cbox.ws/box/?boxid=524970&boxtag=7xpsk7&sec=form
This is a link for a chat box service I own and currently pay for. My goal is to create an announcement script and run a cron job that will send messages to my chat every hour. In order to do that I need to get the input variables for the form and one of them is key as seen here:
<input type="hidden" name="key" value="c126b4f134cb2c1184c1585fdfa4d1b0013a12f4">
Here is my problem. When using the methods I stated above it returns this:
<input type="hidden" name="key" value="">
Key having no value. So I need a method that will get me the key so that I can send message to the chat. Any help would be great appreciated 😀
Update – Looking for closely at the source code i saw this
<script type="text/javascript" src="http://www.cbox.ws/box/jsc.php?v=660"></script>
And there was mention of key so maybe its being generated by javascript? not sure exactly.
1 Answer