From e56e95dcd8468c9769e94d3a0dd1b429dec59ea6 Mon Sep 17 00:00:00 2001 From: Amir Mohammad Saied Date: Thu, 22 Jan 2009 20:44:13 +0330 Subject: [PATCH] Source parameter added Just added the source parameter, this would replace "from api" with "from bti". --- bti.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bti.c b/bti.c index e177187..0ae103d 100644 --- a/bti.c +++ b/bti.c @@ -224,6 +224,11 @@ static int send_tweet(struct session *session) CURLFORM_COPYCONTENTS, session->tweet, CURLFORM_END); + curl_formadd(&formpost, &lastptr, + CURLFORM_COPYNAME, "source", + CURLFORM_COPYCONTENTS, "bti", + CURLFORM_END); + curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost); switch (session->host) { -- 2.39.5