testote.php<form action="testote2.php" method=POST> 
<input type="hidden" name="source" value="webcc-domainregs"> 
<!--<input type="hidden" name="otime" value="2011-01-19 10:40:03"> -->
<!--<input type="hidden" name="url" value="http://www.xjlxjl.net"> 
<input type="hidden" name="ochecksum" value="196b13801f28903afa18ddab32791b99"> -->
<input type="hidden" name="domainname" value="52chs.net"> 
<input type="hidden" name="encoding" value="big5"> 
<input type="hidden" name="term" value="1"> 
<input type="hidden" name="ns1" value="ns1.hostingbay.net"> 
<input type="hidden" name="ns2" value="ns2.hostingbay.net"> 
<input type="hidden" name="reg_contact_type" value="0"> 
<input type="hidden" name="reg_company" value="Example Inc"> 
<input type="hidden" name="reg_fname" value="Wong"> 
<input type="hidden" name="reg_lname" value="Doe"> 
<input type="hidden" name="reg_addr1" value="123 Example Dr."> 
<input type="hidden" name="reg_addr2" value="100 Suite"> 
<input type="hidden" name="reg_state" value="Dulles"> 
<input type="hidden" name="reg_city" value="VA"> 
<input type="hidden" name="reg_postcode" value="47500"> 
<input type="hidden" name="reg_telephone" value="+603.12345678"> 
<input type="hidden" name="reg_fax" value="+603.12345679"> 
<input type="hidden" name="reg_country" value="US"> 
<input type="hidden" name="reg_email" value="[email protected]"> 
<input type="hidden" name="custom_reg1" value="801212-12-12"> 
<input type="hidden" name="custom_reg3" value="1980-12-12"> 
<input type="hidden" name="flag_adm" value="0"> 
<input type="hidden" name="adm_contact_type" value="0"> 
<input type="hidden" name="adm_company" value="Example Inc"> 
<input type="hidden" name="adm_fname" value="John"> 
<input type="hidden" name="adm_lname" value="Doe"> 
<input type="hidden" name="adm_addr1" value="123 Example Dr."> 
<input type="hidden" name="adm_addr2" value="100 Suite"> 
<input type="hidden" name="adm_state" value="Dul es"> 
<input type="hidden" name="adm_city" value="VA"> 
<input type="hidden" name="adm_postcode" value="47500"> 
<input type="hidden" name="adm_telephone" value="+603.12345678"> 
<input type="hidden" name="adm_fax" value="+603.12345679"> 
<input type="hidden" name="adm_country" value="US"> 
<input type="hidden" name="adm_email" value="[email protected]"> 
<input type="hidden" name="custom_adm1" value="801212-12-12"> 
<input type="hidden" name="custom_adm3" value="1980-12-12"> 
<input type="hidden" name="flag_tec" value="0"> 
<input type="hidden" name="tec_contact_type" value="0"> 
<input type="hidden" name="tec_company" value="Example Inc"> 
<input type="hidden" name="tec_fname" value="John"> 
<input type="hidden" name="tec_lname" value="Doe"> 
<input type="hidden" name="tec_addr1" value="123 Example Dr."> 
<input type="hidden" name="tec_addr2" value="100 Suite"> 
<input type="hidden" name="tec_state" value="Dul es"> 
<input type="hidden" name="tec_city" value="VA"> 
<input type="hidden" name="tec_postcode" value="47500"> 
<input type="hidden" name="tec_telephone" value="+603.12345678"> 
<input type="hidden" name="tec_fax" value="+603.12345679"> 
<input type="hidden" name="tec_country" value="US"> 
<input type="hidden" name="tec_email" value="[email protected]"> 
<input type="hidden" name="custom_tec1" value="801212-12-12"> 
<input type="hidden" name="custom_tec3" value="1980-12-12"> 
<input type="hidden" name="flag_bil" value="0"> 
<input type="hidden" name="bil_contact_type" value="0"> 
<input type="hidden" name="bil_company" value="Example Inc"> 
<input type="hidden" name="bil_fname" value="John"> 
<input type="hidden" name="bil_lname" value="Doe"> 
<input type="hidden" name="bil_addr1" value="123 Example Dr."> 
<input type="hidden" name="bil_addr2" value="100 Suite"> 
<input type="hidden" name="bil_state" value="Dul es"> 
<input type="hidden" name="bil_city" value="VA"> 
<input type="hidden" name="bil_postcode" value="47500"> 
<input type="hidden" name="bil_telephone" value="+603.12345678"> 
<input type="hidden" name="bil_fax" value="+603.12345679"> 
<input type="hidden" name="bil_country" value="US"> 
<input type="hidden" name="bil_email" value="[email protected]"> 
<input type="hidden" name="custom_bil1" value="801212-12-12"> 
<input type="hidden" name="custom_bil3" value="1980-12-12"> 
<input type="hidden" name="username" value="xujinliang1227"> 
<input type="hidden" name="password" value="19800617xx"> 
<input type="hidden" name="uin" value="123456"> 
<input type="hidden" name="refno" value="123456"> 
<input type=submit value="提交">
</form> 

解决方案 »

  1.   

    testote2.php<?php
    $otime=date('Y-m-d H:i:s',time());
    $source="webcc-domainregs";
    $pwd="drag0n1979x";
    $strContent = "&source=".$_POST['source'];
    $strContent .= "&otime=".$otime;

    $strContent .= "&domainname=".$_POST['domainname'];
    $strContent .= "&term=".$_POST['term'];
    $strContent .= "&ochecksum=".md5($source.$otime.md5($pwd));
    //$strContent .= "&url=".$_POST['url'];
    $strContent .= "&encoding=".$_POST['encoding'];
    $strContent .= "&username=".$_POST['username'];
    $strContent .= "&password=".$_POST['password'];
    $strContent .= "&newuser=".$_POST['newuser'];
    $strContent .= "&bil_company=".$_POST['bil_company'];
    $strContent .= "&tec_company=".$_POST['tec_company'];
    $strContent .= "&adm_company=".$_POST['adm_company'];
    $strContent .= "&reg_company=".$_POST['reg_company'];

    $strContent .= "&bil_fname=".$_POST['bil_fname'];
    $strContent .= "&tec_fname=".$_POST['tec_fname'];
    $strContent .= "&adm_fname=".$_POST['adm_fname'];
    $strContent .= "&reg_fname=".$_POST['reg_fname'];

    $strContent .= "&bil_lname=".$_POST['bil_lname'];
    $strContent .= "&tec_lname=".$_POST['tec_lname'];
    $strContent .= "&reg_lname=".$_POST['reg_lname'];
    $strContent .= "&adm_lname=".$_POST['adm_lname'];

    $strContent .= "&bil_addr1=".$_POST['bil_addr1'];
    $strContent .= "&tec_addr1=".$_POST['tec_addr1'];
    $strContent .= "&reg_addr1=".$_POST['reg_addr1'];
    $strContent .= "&adm_addr1=".$_POST['adm_addr1'];

    $strContent .= "&bil_city=".$_POST['bil_city'];
    $strContent .= "&tec_city=".$_POST['tec_city'];
    $strContent .= "&reg_city=".$_POST['reg_city'];
    $strContent .= "&adm_city=".$_POST['adm_city'];

    $strContent .= "&bil_state=".$_POST['bil_state'];
    $strContent .= "&tec_state=".$_POST['tec_state'];
    $strContent .= "&reg_state=".$_POST['reg_state'];
    $strContent .= "&adm_state=".$_POST['adm_state'];

    $strContent .= "&bil_country=".$_POST['bil_country'];
    $strContent .= "&tec_country=".$_POST['tec_country'];
    $strContent .= "&reg_country=".$_POST['reg_country'];
    $strContent .= "&adm_country=".$_POST['adm_country'];

    $strContent .= "&bil_postcode=".$_POST['bil_postcode'];
    $strContent .= "&tec_postcode=".$_POST['tec_postcode'];
    $strContent .= "&reg_postcode=".$_POST['reg_postcode'];
    $strContent .= "&adm_postcode=".$_POST['adm_postcode'];

    $strContent .= "&bil_email=".$_POST['bil_email'];
    $strContent .= "&tec_email=".$_POST['tec_email'];
    $strContent .= "&reg_email=".$_POST['reg_email'];
    $strContent .= "&adm_email=".$_POST['adm_email'];

    $strContent .= "&bil_telephone=".urlencode($_POST['bil_telephone']);
    $strContent .= "&reg_telephone=".urlencode($_POST['reg_telephone']);
    $strContent .= "&adm_telephone=".urlencode($_POST['adm_telephone']);
    $strContent .= "&tec_telephone=".urlencode($_POST['tec_telephone']);

    $strContent .= "&reg_contact_type=".$_POST['reg_contact_type'];
    $strContent .= "&tec_contact_type=".$_POST['tec_contact_type'];
    $strContent .= "&adm_contact_type=".$_POST['adm_contact_type'];
    $strContent .= "&bil_contact_type=".$_POST['bil_contact_type'];

    $strContent .= "&ns1=".$_POST['ns1'];
    $strContent .= "&ns2=".$_POST['ns2'];

    $strContent .= "&custom_reg1=".$_POST['custom_reg1'];
    $strContent .= "&custom_reg3=".$_POST['custom_reg3'];
    $strContent .= "&custom_adm1=".$_POST['custom_adm1'];
    $strContent .= "&custom_adm3=".$_POST['custom_adm3'];
    $strContent .= "&custom_tec1=".$_POST['custom_tec1'];
    $strContent .= "&custom_tec3=".$_POST['custom_tec3'];
    $strContent .= "&custom_bil1=".$_POST['custom_bil1'];
    $strContent .= "&custom_bil3=".$_POST['custom_bil3'];

    $strContent .= "&uin=".$_POST['uin'];
    $strContent .= "&refno=".$_POST['refno'];

    $postfield = $strContent;
    var_dump($postfield);
    $ch = curl_init();
    $url="http://ote.webnic.cc/jsp/pn_newreg.jsp";
    curl_setopt($ch, CURLOPT_URL,$url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $postfield);
    $r = curl_exec($ch);
    curl_close ($ch);
    echo "<br>";
    var_dump($r);

    ?>
      

  2.   

    这是一个域名注册的测试接口,但是返回总是
    string(66) "4 System message (Parameter value policy error. Domain:52chs.net) "崩溃,,求解惑
      

  3.   

    最后返回的是这个:
    string(24) "5 IP Address prohibited "