Replacement for curl calls