authorize curl connection