... otherwise this will happen: erics:~/Sites eric$ /opt/php5/bin/php networksolutions.php Starting at 01/16/2008 12:36pm.Result: ...snip... Your Domain Name Search Results Congratulations! The following domains are available eric-butera-for-php-general Then a few minutes later: erics:~ eric$ whois eric-butera-for-php-general.com ...snip... Domain Name: ERIC-BUTERA-FOR-PHP-GENERAL.COM Registrar: NETWORK SOLUTIONS, LLC. Whois Server: whois.networksolutions.com Referral URL: http://www.networksolutions.com Name Server: NS1.RESERVEDDOMAINNAME.COM Name Server: NS2.RESERVEDDOMAINNAME.COM Status: clientHold Updated Date: 16-jan-2008 Creation Date: 16-jan-2008 Expiration Date: 16-jan-2009 networksolutions.php: <?php printf("Starting at %s.", date('m/d/Y h:ia')); $url = 'http://www.networksolutions.com/domainSearch.do'; $values = array( 'domainNames' => 'eric-butera-for-php-general', 'method-submit.x' => '', 'method-submit.y' => '', 'Search' => '/domain-name-registration/domain-name-search-results.jsp', 'allowBulk' => 'false', 'currentPage' => '/home.jsp?layoutIdIndex=0', 'formTargetPage' => '/domain-name-registration/index.jsp' ); // semi-borrowed from Ojas Ojasvi php.net/curl because my vanilla post was rejected $header[] = "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"; $header[] = "Cache-Control: max-age=0"; $header[] = "Connection: keep-alive"; $header[] = "Keep-Alive: 300"; $header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $header[] = "Accept-Language: en-us,en;q=0.5"; $header[] = "Pragma: "; $c = curl_init(); curl_setopt($c, CURLOPT_HTTPHEADER, $header); curl_setopt($c, CURLOPT_REFERER, 'http://www.networksolutions.com'); curl_setopt($c, CURLOPT_USERAGENT, 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11'); curl_setopt($c, CURLOPT_POST, true); curl_setopt($c, CURLOPT_POSTFIELDS, $values); curl_setopt($c, CURLOPT_URL, $url); curl_setopt($c, CURLOPT_RETURNTRANSFER, true); curl_setopt($c, CURLOPT_FOLLOWLOCATION, true); echo "Result:\n"; echo curl_exec($c); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php