6.3 HP StoreAll Storage File System User Guide (TA768-96093, June 2013)

If the pathname ends with a filename, the browser either opens the file or prompts the user to open
or save the file, depending on the browser settings.
You can also use curl commands to access an HTTP share.
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 path named 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 /ifs/http, the http service automatically creates
the directory /ifs/http/new_dir/ and sets the permissions to 755. 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.
For anonymous users:
Upload a file using HTTP protocol:
curl -T <filename> http://IP_address:port/urlpath/pathname
Upload a file using HTTPS protocol:
curl --cacert <cacert_file> -T <filename>
https://IP_address:port/urlpath/pathname/
The <filename> property does not have to have the same file name as specified in the
pathname.
Download a file using HTTP protocol:
curl http://IP_address:port/urlpath/pathname -o <local destination
path for download>/<filename>/
Download a file using HTTPS protocol:
curl --cacert <cacert_file> https://IP_address:port/urlpath/pathname
-o <local destination path for 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/pathname
Upload a file using HTTPS protocol:
curl --cacert <cacert_file> -T <filename> -u <ADuser>
https://IP_address:port/urlpath/pathname
Download a file using HTTP protocol:
curl -u <ADuser> http://IP_address:port/urlpath/pathname -o <local
destination path for download>/<filename>/
Download a file using HTTPS protocol:
curl --cacert <cacert_file> -u <ADuser>
https://IP_address:port/urlpath/pathname -o <local destination path
for download>/<filename>/
For more information on operations that can be performed for HTTP-StoreAll REST API share in
file-compatible mode, see “HTTP-REST API file-compatible mode shares” (page 152).
134 Using HTTP