This function returns the ICP license for a domain. Customers using services in China must register with the Chinese government.
Header |
Description |
Required |
Authorization |
Authorization string for the request |
Yes |
Host |
URI for the QUANTIL SDK (i.e., api.quantil.com) |
Yes |
Date |
The date and time of the request. |
Yes |
Accept |
Indicates the accepted format (i.e., application/xml) |
Yes |
Parameter |
Description |
Required |
domain |
name of a domain |
Yes |
This request does not include an XML document in the request body.
GET /api/icp HTTP/1.1
Authorization: <authorization string>
Host: api.quantil.com
Date: <date>
Accept: application/xml
Here is the structure of a request using the curl utility.
curl -i --url https://api.quantil.com/api/icp?domain={domain-name}
-X GET
-u {user}: {password}
-H 'Date: Fri, 26 Oct 2012 06:33:26 GMT'
-H 'Accept: application/xml'
curl -i --url 'https://api.quantil.com/api/icp?domain=xyz.com' -u test:IltUPtb1nMmbHUyNruhjFDBkPvs= -H 'Date: Fri, 08 Aug 2014 14:10:38 PDT' -H 'Accept: application/xml'
HTTP/1.1 200 OK
Date: <date>
Content-Type: application/xml; charset = utf-8
x-cnc-request-id: {id string auto generated by the QUANTIL server}
Element |
Description |
icp |
container object which describes the icp number for a domain. |
domain |
name of a domain |
icp-number |
the ICP license number. If there is no record, the field will be empty. |
HTTP/1.1 200 OK
Date: Fri, 08 Aug 2014 23:13:13 GMT
Accept-Ranges: bytes
Server: Restlet-Framework/2.1.0
x-cnc-request-id: 27999
ContentType: application/xml;charset=UTF-8
Content-Type: application/xml;charset=UTF-8
Content-Length: 98
<?xml version="1.0" encoding="UTF-8"?><icp><domain>xyz.com</domain><icp-number></icp-number></icp>
This API has no special error codes.