http - Download Redmine Gantt Chart PNG using Curl? -


i'm attempting obtain copy of redmine's gantt chart png export using curl. seems http basic auth not allow me access , every request made returns "http/1.1 406 not acceptable"

curl -u <user>:<pw> -h 'accept: image/png' -v http://redmine/projects/devprocess/issues/gantt.png 

if put url browser not logged redmine, same thing (well blank window)...so i'm assuming has authentication. there way "login" redmine , maintain consistent session via curl can download png file?

note: end solution ruby script, i'll accept ruby answers too. curl "least common denominator" client.

ended doing in app/controllers/gantts_controller.rb:

class ganttscontroller < applicationcontroller    menu_item :gantt    before_filter :find_optional_project +  accept_api_auth :show 

seems work. add plugin somehow.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -