Accessing shares – HP StoreAll Storage User Manual

Page 119

Advertising
background image

Accessing shares

Clients access an HTTP share by specifying a URL in their browser (Internet Explorer or Mozilla
Firefox). In the following URLs, IP_address:port is the IP (or virtual IP) and port configured for
the share.

For a share configured with an IP-based virtual host and the anonymous parameter is set to
true

, use the following URL:

http://IP_address:port/urlpath/

For a shared configured with a userlist and having the anonymous parameter set to
false

, use the following URL:

http://IP_address:port/urlpath/

Enter your user name and password when prompted.

NOTE:

When a file is uploaded into an HTTP share, the file is owned by the user who uploaded

the file to the share.

If a user uploads a file to an HTTP share and specifies a subdirectory that does not already exist,
the subdirectory will be created. For example, you could have a share mapped to the directory
/ifs/http/

and using the URL:http_url. A user could upload a file into the share:

curl -T file http://<ip>:<port>/http_url/new_dir/file

If the directory new_dir does not exist under http_url, the http service automatically creates
the directory /ifs/http/new_dir/ and sets the permissions to 777. If the anonymous user
performed the upload, the new_dir directory is owned by daemon:daemon. If a non-anonymous
user performed the upload, the new_dir directory is owned by user:group.

You can also use curl commands to access an HTTP share.

For anonymous users:

Upload a file using HTTP protocol:

curl -T <filename> http://IP_address:port/urlpath/

Upload a file using HTTPS protocol:

curl --cacert <cacert_file> -T <filename>

https://IP_address:port/urlpath/<filename>/

Download a file using HTTP protocol:

curl http://IP_address:port/urlpath/<filename> -o <path to

download>/<filename>/

Download a file using HTTPS protocol:

curl --cacert <cacert_file>

https://IP_address:port/urlpath/<filename> -o <path to

download>/<filename>/

For Active Directory users (specify the user as in this example: mycompany.com\\User1):

Upload a file using HTTP protocol:

curl –T <filename> -u <ADuser> http://IP_address:port/urlpath/

Upload a file using HTTPS protocol:

curl --cacert <cacert_file> -T <filename> -u <ADuser>

https://IP_address:port/urlpath/

Accessing shares

119

Advertising