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…?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs