diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-19 19:06:13 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-19 19:06:13 +0800 |
commit | acd4ab68d1f9521983390bfff88dce3980633038 (patch) | |
tree | 3bf2b8d9e6be3237c09c8ba63473fc1b8371cf1d /pikul.c | |
parent | 3533297ec2cf539672a362ff931d0b15c9cb38ff (diff) | |
parent | 0f4b2281ee59811e72a9975dd019891eb334683e (diff) |
Merge branch 'master' into sicepat
Diffstat (limited to 'pikul.c')
-rw-r--r-- | pikul.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -220,9 +220,12 @@ char *pikul_order(const char *order_number, const char *service, const char *sen break; } curl_easy_setopt(curl, CURLOPT_URL, shipping.url); - if (shipping.post) + if (shipping.post) { curl_easy_setopt(curl, CURLOPT_POSTFIELDS, shipping.post); - else +#ifdef DEBUG + fprintf(stderr, "POST: %s\n", shipping.post); +#endif + } else curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L); shipping.mode = ORDER; curl_easy_perform(curl); |