From 0f4b2281ee59811e72a9975dd019891eb334683e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 19 Jul 2021 19:04:21 +0800 Subject: Log order POST --- pikul.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3