Get ICP license number - GET /api/icp

Miscellaneous ››
Parent Previous Next

GET /api/icp    

This function returns the ICP license for a domain. Customers using services in China must register with the Chinese government.

Request Details


Request Headers


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


Request Parameters


Parameter

Description

Required

domain

name of a domain

Yes

Request Body Elements

This request does not include an XML document in the request body.


Request Syntax:


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'

Sample Request:


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'

Response Details:


Response Headers:

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}



Response Body Elements


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.

Sample Response:

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>


Error List

This API has no special error codes.