#1 (permalink) Wed Jan 20, 2010 21:34 pm Curl (id 240) |
|
|
CURL works only with an external library. In order to use CURL, PHP must have the "with-curl"-symbol. Alternatively, the request can also be submitted through sockets. First you need to open a new CURL session and chose your send options. Then we process the call and close the handle. The response code can also be processed the same way as with the file() method.
Original German text:
CURL funktioniert nur mit einer externen Library. Um CURL nutzen zu können, muss PHP das "with-curl"-Symbol besitzen. Ansonsten kann der Request auch über Sockets verschickt warden. Zunächst wird eine neue CURL-Session eröffnet und die gewünschten Sendeoptionen eingegeben. Dann führen wir den Call aus und schließen das Handle. Der Response Code kann dann natürlich auch wie bei der file()-Methode ausgewertet werden.
TOEIC listening, talks: Announcing the schedule of a mobile blood center |
|
Torsten Learning Coach

Joined: 25 Sep 2003 Posts: 15008 Location: EU
|