Setting HTTP POST variables for a scrape file

Given that these variables have to be assigned to the scrapeable file object, how can I from a prior scrapeable file object, access the next one I am going to trigger? I can't seem to see any way to retrieval a scrapeable file object.

Setting HTTP POST variables for a scrape file

It sounds like that should work, yes. Just be sure to call 'removeAllHTTPParameters' before setting them again, as the previous parameters will still be on the scrapeable file.

Good luck,

Todd

Setting HTTP POST variables for a scrape file

Oh I know the functions to call, was just trying to figure out how to set the variables, since you can only set it on the current scrapeableFile object, but I think I worked it out.

basically save 3 DataSets from the prior screen into session variables, then scrape the file, and at startup of that file, setup the form variables, NOT perfect maybe, but it should work right?

Setting HTTP POST variables for a scrape file

Hi,

Thanks for the clarification. It sounds like these two methods would be what you need

http//www.screen-scraper.com/support/docs/api_documentation.php#addHTTPParameter
http//www.screen-scraper.com/support/docs/api_documentation.php#removeAllHTTPParameters

Please feel free to post back if I can provide any other suggestions.

Kind regards,

Todd Wilson

Setting HTTP POST variables for a scrape file

I am actually gathering up all the form fields from the first file, and need to add them as dynamic POST variables on the next file, but I see how I can create a new session, but not how to create/access a scrapeable file object, but then again I have been so buried/checking out samples, I might have seen it and missed it.

Setting HTTP POST variables for a scrape file

Hi,

Could you provide a few more details on what you're wanting to do? Are you simply wanting to invoke a scrapeable file after a previous one has executed? Or are you wanting to somehow re-use the POST parameters from the first scrapeable file on the second?

Thanks,

Todd Wilson