public function addPostData($url_regex, $post_data_array)
  {
    // Check regex
    $regex_okay = PHPCrawlerUtils::checkRegexPattern($url_regex);
    
    if ($regex_okay == true)
    {
      @reset($post_data_array);
      while (list($key, $value) = @each($post_data_array))
      {  
        // Add data to post_data-array
        $tmp = array();
        $tmp["url_regex"] = $url_regex;
        $tmp["key"] = $key;
        $tmp["value"] = $value;
      
        $this->post_data[] = $tmp;
      }
      
      return true;
    }
    else return false;
  }
public function addPostData($url_regex, $post_data_array)
  {
    // Check regex
    $regex_okay = PHPCrawlerUtils::checkRegexPattern($url_regex);
    
    if ($regex_okay == true)
    {
      @reset($post_data_array);
      while (list($key, $value) = @each($post_data_array))
      {  
        // Add data to post_data-array
        $tmp = array();
        $tmp["url_regex"] = $url_regex;
        $tmp["key"] = $key;
        $tmp["value"] = $value;
      
        $this->post_data[] = $tmp;
      }
      
      return true;
    }
    else return false;
  }
public function addPostData ( $ url_regex , $ post_data_array ) { // Check regex
 $ regex_okay = PHPCrawlerUtils :: checkRegexPattern ( $ url_regex ) ; if ( $ regex_okay == true ) { @ reset ( $ post_data_array ) ; while ( list ( $ key , $ value ) = @ each ( $ post_data_array ) ) { // Add data to post_data-array
 $ tmp = array ( ) ; $ tmp [ "url_regex" ] = $ url_regex ; $ tmp [ "key" ] = $ key ; $ tmp [ "value" ] = $ value ; $ this -> post_data [ ] = $ tmp ; } return true ; } else return false ; }
Adds post-data together with an URL-regex to the list of post-data to send with requests.

@param string $url_regex       Regular expression defining the URL(s) the post-data should be send to.
@param array  $post_data_array Post-data-array, the keys are the post-data-keys, the values the post-values.
(like array("key1" => "value1", "key2" => "value2")
Adds post - data together with an URL - regex to the list of post - data to send with requests .