Skip to content

Instantly share code, notes, and snippets.

@quoidautre
Created December 17, 2012 09:15
Show Gist options
  • Select an option

  • Save quoidautre/4316935 to your computer and use it in GitHub Desktop.

Select an option

Save quoidautre/4316935 to your computer and use it in GitHub Desktop.
curl init options
<snippet>
<content><![CDATA[
\$curl = curl_init();
\$curlOptions = array(
CURLOPT_URL => ${1:url},
CURLOPT_POST => ${2:post},
CURLOPT_POSTFIELDS => ${3:fields},
CURLOPT_RETURNTRANSFER => ${4:return},
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_VERBOSE => 1
);
curl_setopt_array(\$curl,\$curlOptions);
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>curlopt</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment