KB Article #44070
How to send files in HTTP or HTTP(s) to Gateway using CURL
Problem
How to send files in HTTP or HTTP(s) to Gateway using CURL
Resolution
Here you'll find some CURL command line examples to upload a file to a HTTP(s) Gateway server
* Using Curl with a HTTPS Gateway server using optional authentication:
curl -T README "https://hostname:6443/user2/?user=user2&password=user2" --cacert AxwayCA.pem --tlsv1 --insecure
* Using curl with a HTTPS Gateway server using mandatory authentication:
1. Convert p12 certificate into pem certificate with OpenSSL:
openssl pkcs12 -in user2.p12 -out user2.pem
2. CURL command:
curl -T README "https://hostname:6443/user2/?user=user2&password=user2" --cacert AxwayCA.pem --insecure -E user2.pem:user2