handle curl proxy