in reply to Re: Can't able to get source page 500 error.
in thread Can't able to get source page 500 error.

I saying that if I running this code it shows 500 error and i didn't use mechanize in this script but even i use mechanize also i can't get the source page.Someone try to get source page for this site i have know how to get source page of this site.<\p>

  • Comment on Re^2: Can't able to get source page 500 error.

Replies are listed 'Best First'.
Re^3: Can't able to get source page 500 error.
by 1nickt (Canon) on Jun 08, 2017 at 13:47 UTC

    Er, did you actually read my reply?

    1. The page requires Javascript.
    2. Neither LWP::UserAgent nor WWW::Mechanize support Javascript.
    3. Thus, your approach can not work.
    If you want to try to accomplish your task in Perl, you could look at Selenium::Remote::Driver, but that would require installing a headless browser on your system. Or, you could choose to accomplish your task without Perl using PhantomJS. Either way, you have a lot of work and learning ahead of you.


    The way forward always starts with a minimal test.

      I maintain a zoo of Javascript-enabled WWW::Mechanize work-alikes, WWW::Mechanize::PhantomJS, WWW::Mechanize::Firefox and WWW::Mechanize::Chrome. These might or might not help with accessing that site, depending on the real cause for the 500 error.

      Personally, I don't think the 500 error stems from not having Javascript but more likely stems from an invalid HTTPS certificate.