url = $url; $this->opts = $opts; $this->tenon_response = ''; } /** * Submits the HTML source for testing * * @param boolean $print_info whether or not to print the output from curl_getinfo (usually for debugging only). */ public function submit( $print_info = false ) { if ( true == $print_info ) { echo '

Options Passed To Tenon


'; var_dump( $this->opts ); echo '
'; } $args = array( 'method' => 'POST', 'body' => $this->opts, 'headers' => '', 'timeout' => 60, ); $result = wp_remote_post( $this->url, $args ); if ( true == $print_info ) { echo '

Query Info

';
			print_r( $result );
			echo '
'; } if ( is_wp_error( $result ) ) { $this->tenon_response = $result->errors; } else { // the test results. $this->tenon_response = $result; } } }