0

I want to get the result from websites that use ajax, when I save the view source the ajax details don't appear, but when i use firebug I can see the source. Is there a way to get this source to string at c# or Perl? Can someone help me?

DarkAjax
  • 15,955
  • 11
  • 53
  • 65
gil yossef
  • 21
  • 3
  • 1
    Your question is unclear, what exactly are you trying to do? – Shai Apr 23 '12 at 13:43
  • I also have the hunch this is an [XY problem](http://www.perlmonks.org/?node_id=542341). gil yossef, what do you want to accomplish with the generated source? – daxim Apr 23 '12 at 14:49
  • i want to analyse dynamic details, like stocks values from websites – gil yossef Apr 23 '12 at 15:45
  • Then that topic was discussed already very often, relevant: http://stackoverflow.com/q/9559927 http://stackoverflow.com/q/857515 http://stackoverflow.com/q/2655034 http://stackoverflow.com/q/2703902 http://stackoverflow.com/q/3769015 http://stackoverflow.com/q/3900979 http://stackoverflow.com/q/4767562 http://stackoverflow.com/q/5342685 [Mech FAQ](http://p3rl.org/WWW::Mechanize::FAQ#JavaScript) – daxim Apr 23 '12 at 16:57

1 Answers1

0

AJAX use a remote call over http to update the HTML interface, so you need to find out the URL that the AJAX execution is calling. With the proper URL and params, you can do a LWP::UserAgent call and parse the response content.

Miguel Prz
  • 13,718
  • 29
  • 42