Property | Type | Description | |
---|---|---|---|
AddFormField | SeasideResearch.LibCurlNet.CURLFORMcode | ||
AddFormFile | bool | ||
AddFormFile | bool | ||
CleanupCurl | void | ||
ClearDataIn | void | ||
DrupCurlPerform | SeasideResearch.LibCurlNet.CURLcode | ||
OnDebug | void | ||
OnProgress | |||
OnWriteData | |||
errorMessage | void | ||
getToken | string |
Method | Description | |
---|---|---|
Curl ( string serverURL ) : System |
Constructor, init curl service.
|
|
DownloadFile ( string httpPath, string savePath ) : bool | ||
FileUpload ( string localPath ) : int |
Upload a file to Drupal using the form-file module and CURL
|
|
FileUpload ( string localPath, string serverDirectory ) : int |
Upload a file to Drupal using the form-file module and CURL
|
|
Login ( string user, string password ) : bool | ||
Logout ( ) : bool | ||
ReLogin ( ) : bool |
Method | Description | |
---|---|---|
AddFormField ( SeasideResearch.LibCurlNet mf, object fieldName, object Value ) : SeasideResearch.LibCurlNet.CURLFORMcode | ||
AddFormFile ( SeasideResearch.LibCurlNet mf, string fileName, Enums field ) : bool | ||
AddFormFile ( SeasideResearch.LibCurlNet mf, string fileName, string field ) : bool |
add information to upload a file, also perform check of file size and file existing
|
|
CleanupCurl ( ) : void | ||
ClearDataIn ( ) : void | ||
DrupCurlPerform ( ) : SeasideResearch.LibCurlNet.CURLcode | ||
OnDebug ( SeasideResearch.LibCurlNet infoType, String msg, Object extraData ) : void | ||
OnProgress ( Object extraData, Double dlTotal, Double dlNow, Double ulTotal, Double ulNow ) : |
||
OnWriteData ( Byte buf, |
||
errorMessage ( string msg ) : void | ||
getToken ( string url, string formId ) : string |
public DownloadFile ( string httpPath, string savePath ) : bool | ||
httpPath | string | |
savePath | string | |
return | bool |
public FileUpload ( string localPath ) : int | ||
localPath | string | Local file location |
return | int |
public FileUpload ( string localPath, string serverDirectory ) : int | ||
localPath | string | Local file location |
serverDirectory | string | Save to a specific directory in drupal |
return | int |
public Login ( string user, string password ) : bool | ||
user | string | |
password | string | |
return | bool |