aboutsummaryrefslogtreecommitdiff
path: root/src/eclat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eclat.c')
-rw-r--r--src/eclat.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/eclat.c b/src/eclat.c
index beaa934..2e46930 100644
--- a/src/eclat.c
+++ b/src/eclat.c
@@ -31,6 +31,7 @@ char *secret_key;
char *security_token;
char *region_name;
int use_ssl;
+int use_post;
int ssl_verify_peer = 1;
char *ssl_ca_file;
char *ssl_ca_path;
@@ -646,10 +647,15 @@ eclat_do_command(eclat_command_env_t *env, struct eclat_command *command,
int rc;
if (!(command->flags & CMD_NOQRY)) {
- env->request = eclat_request_create(use_ssl ? EC2_RF_HTTPS : 0,
- endpoint, "/",
- region_name, access_key,
- security_token);
+ int flags = 0;
+ if (use_ssl)
+ flags |= EC2_RF_HTTPS;
+ if (use_post)
+ flags |= EC2_RF_POST;
+ env->request = eclat_request_create(flags,
+ endpoint, "/",
+ region_name, access_key,
+ security_token);
}
if (command->tag)

Return to:

Send suggestions and report system problems to the System administrator.