setReferer

void scrapeableFile.setReferer ( String url ) (professional and enterprise editions only)

Description

Set referer HTTP header.

Parameters

  • url URL of the referer, as a string.

Return Values

Returns void.

Change Log

Version Description
4.5 Available for professional and enterprise editions.

This method must be called before the file is scraped.

Examples

Specify that Request contains Files

 // In script called "Before file is scraped"

 // Sets the value of url as the HTTP header
 // referer for the current scrapeable file.

 scrapeableFile.setReferer( "http://www.foo.com/" );