Resource errors print to stderr instead of stdout
Added csrftoken cookie