Using an IP address in a URL

Content Platform Tenant Management Help

Version
9.7.x
File Size
4269 KB
Audience
anonymous
Part Number
MK-95HCPH002-19

Normally, you let HCP choose the node on which to process an S3 compatible API request. You can, however, use an IP address in the request URL to access the system on a specific node. To do this, you replace the fully qualified hostname in the URL with the IP address of an HCP node.

When you use an IP address in a URL, you also need to specify the fully qualified hostname in an HTTP Host request header.

Here’s an example of an s3curl command that uses a URL with an IP address and a Host header that identifies the finance bucket:

./s3curl.pl --id=lgreen --put=Q4_2019.ppt -- -k
     -H "Host: finance.europe.hcp.example.com"
     "https://192.168.210.16/quarterly_rpts/Q4_2019.ppt"

Here’s a command that does the same thing as the command above but uses the format in which the bucket name follows the URL:

./s3curl.pl --id=lgreen --put=Q4_2019.ppt -- -k
     -H "Host: europe.hcp.example.com"
     "https://192.168.210.16/finance/quarterly_rpts/Q4_2019.ppt"