Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • How would I go about mimicing this? Commented Nov 2, 2012 at 16:43
  • 1
    You mimic that by reading the javascript code and then understanding what it does. You then transform that knowledge into PHP code and into curl request configuration. You just do the work of the javascript in the browser so to say. Just in PHP instead of javascript and compatible to curl. You might need to parse the HTML and javascript. For HTML parsing I highly suggest PHP's DOMDocument. First lesson is to extract the text of the <script> tag here. Commented Nov 2, 2012 at 16:46
  • Surely if I do a CURL request now, I should get that script tag returned? Instead, the page just constantly loads? Commented Nov 2, 2012 at 16:53
  • 1
    First sentence with question mark: Yes. Second sentence with question mark: No. Commented Nov 3, 2012 at 14:22