Added the ability to call web services which require auth

Also fixed a bug calling curl