summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-19 19:04:21 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-19 19:04:21 +0800
commit0f4b2281ee59811e72a9975dd019891eb334683e (patch)
treed153fa078ba7b15655ae45546ffbf66cd034f80b
parent194ca9221d44acc98007251d845899890b57b4ce (diff)
Log order POST
-rw-r--r--pikul.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pikul.c b/pikul.c
index 8a6b3c1..df1662e 100644
--- a/pikul.c
+++ b/pikul.c
@@ -209,8 +209,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);
+#ifdef DEBUG
+ fprintf(stderr, "POST: %s\n", shipping.post);
+#endif
+ }
shipping.mode = ORDER;
curl_easy_perform(curl);
if (shipping.post)