PHP » PYTHON |
login |
register |
about
|
PYTHON curl_init
is this article helpful?
|
Python replacement for PHP's curl_init
[
edit
| history
]
import pycurl
c = pycurl.Curl() # if $url was set c.setopt(c.URL, url) curl_init(PHP 4 >= 4.0.2, PHP 5) curl_init — Initialize a cURL session Description
resource curl_init
([ string $url= NULL
] )
Initializes a new session and return a cURL handle for use with the curl_setopt(), curl_exec(), and curl_close() functions. Parameters
Return ValuesReturns a cURL handle on success, FALSE on errors. Examples
Example #1 Initializing a new cURL session and fetching a web page
<?php
|
more
Recently updated
more
Most requested
more
Last requests
|