Implements curl call