Added agent and https options and cleaned up 413 error handling
1.1.0