Modify curl check