Getting status code 500

Hi Jason,

I am trying to scrape the URL http://furnitureclassics.com/product/category/151843 but when add this URL in scrape file then it shows an error message :- "Warning! Received a status code of: 500" .

Thanks
Shyam

Yes, I ran it before file is

Yes, I ran it before file is scraped.

On the session go to the

On the session go to the advanced tab and change the HTTP client to "Ning Async". Then make a script that runs "before the file is scraped" that contains:

scrapeableFile.addHTTPHeader("Accept", "gzip, deflate");

Then it should work.

Still getting error

Hello Jason,

I did those steps but still I am getting the following Error :-

"The error message was: class bsh.EvalError (line 1): scrapeableFile .addHTTPHeader ( "Accept" , "gzip, deflate" ) --Sourced file: inline evaluation of: ``scrapeableFile.addHTTPHeader("Accept", "gzip, deflate");'' : Attempt to resolve method: addHTTPHeader() on undefined variable or class name: scrapeableFile"

Thanks
Shyam

Where are you executing the

Where are you executing the script? It should be on the scrapeableFile, "before file is scraped".

Yes, I am executing the

Yes, I am executing the script "before file is scraped".

I attached a scrape to this

I attached a scrape to this thread. It works for me.

Now It is working

Yes, Now it is working fine.
Thanks !!