Modules/cURL/curl pause: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Modules/cURL/func_page| description = Pause a request or result| syntax = <syntaxhighlight lang="lua">CURLcode curl_pause(CURL handler, int bitmask)</syntaxhighlight>| required_arguments = * '''...") |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Modules/cURL/func_page| | {{Modules/cURL/func_page| | ||
description = Pause a request or result| | description = Pause a request or result| | ||
syntax = <syntaxhighlight lang="lua">CURLcode | syntax = <syntaxhighlight lang="lua">CURLcode curlPause(CURL handler, int bitmask)</syntaxhighlight>| | ||
required_arguments = * '''handler''' The curl handler | required_arguments = * '''handler''' The curl handler | ||
* '''bitmask''' An integer representing what you want to pause. Read more about this here| | * '''bitmask''' An integer representing what you want to pause. Read more about this [[Modules/cURL/variables/CURLPAUSE|here]]| | ||
optional_arguments = | optional_arguments = None| | ||
returns = Returns a CURLcode, if everything is oke it returns CURLE_OK| | returns = Returns a CURLcode, if everything is oke it returns CURLE_OK| | ||
example = <syntaxhighlight lang="lua"> | example = <syntaxhighlight lang="lua"> | ||
curlPause( curl, CURLPAUSE_RECV ); | |||
curlPerform( ... ); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} |
Latest revision as of 11:08, 22 June 2014
This function is provided by the external module cURL. You must install this module to use this function. | |
Pause a request or result
Syntax
CURLcode curlPause(CURL handler, int bitmask)
Required arguments
- handler The curl handler
- bitmask An integer representing what you want to pause. Read more about this here
Optional arguments
None
Returns
Returns a CURLcode, if everything is oke it returns CURLE_OK
Example
curlPause( curl, CURLPAUSE_RECV ); curlPerform( ... );