How could I post request with out parameters using curb

Through command line request:
curl POST -u login:pass --url http://test/item/176/start

and follow code doesn’t work for me:

c= Curl::Easy.new(‘http://test/item/176/start’)
c.username = ‘login’
c.password = ‘pass’
c.http_post(‘http://test/item/176/start’)
curl.perform

what’s wrong?

VV VV wrote:

Through command line request:
curl POST -u login:pass --url http://test/item/176/start

and follow code doesn’t work for me:

c= Curl::Easy.new(‘http://test/item/176/start’)
c.username = ‘login’
c.password = ‘pass’
c.http_post(‘http://test/item/176/start’)
curl.perform

what’s wrong?

probably need to use something else?

hey, could anybody helm me…?