summaryrefslogtreecommitdiff
path: root/pikul.c
diff options
context:
space:
mode:
Diffstat (limited to 'pikul.c')
-rw-r--r--pikul.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pikul.c b/pikul.c
index dfb6af8..452a3e4 100644
--- a/pikul.c
+++ b/pikul.c
@@ -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);