Curl in ruby

55 views
Skip to first unread message

Osvaldo Mercado

unread,
Nov 16, 2010, 5:17:06 PM11/16/10
to ruby-curl-multi
hello, I was search a documentation of curl for ruby an any
examples... anyway I am do a login for pivotal tracker API.. and the
url is:

for post:

curl -H "X-TrackerToken: TOKEN" -d username=USERNAME -d
password=PASSWORD -X POST https://www.pivotaltracker.com/services/v3/tokens/active

and get:

curl -u USERNAME:PASSWORD -X GET https://www.pivotaltracker.com/services/v3/tokens/active

so, how I can do an authentication whether I'm used Ruby??
Reply all
Reply to author
Forward
0 new messages