C# 클래스 DrutNET.Curl

enable to connect to drupal using cURL -- Single Tone --
상속: DrutNETBase, IConnection
파일 보기 프로젝트 열기: bricel/DrutNet 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddFormField SeasideResearch.LibCurlNet.CURLFORMcode
AddFormFile bool
AddFormFile bool
CleanupCurl void
ClearDataIn void
DrupCurlPerform SeasideResearch.LibCurlNet.CURLcode
OnDebug void
OnProgress System.Int32
OnWriteData System.Int32
errorMessage void
getToken string

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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 ) : Int32
OnWriteData ( Byte buf, Int32 size, Int32 nmemb, Object extraData ) : Int32
errorMessage ( string msg ) : void
getToken ( string url, string formId ) : string

메소드 상세

Curl() 공개 메소드

Constructor, init curl service.
public Curl ( string serverURL ) : System
serverURL string
리턴 System

DownloadFile() 공개 메소드

public DownloadFile ( string httpPath, string savePath ) : bool
httpPath string
savePath string
리턴 bool

FileUpload() 공개 메소드

Upload a file to Drupal using the form-file module and CURL
public FileUpload ( string localPath ) : int
localPath string Local file location
리턴 int

FileUpload() 공개 메소드

Upload a file to Drupal using the form-file module and CURL
public FileUpload ( string localPath, string serverDirectory ) : int
localPath string Local file location
serverDirectory string Save to a specific directory in drupal
리턴 int

Login() 공개 메소드

public Login ( string user, string password ) : bool
user string
password string
리턴 bool

Logout() 공개 메소드

public Logout ( ) : bool
리턴 bool

ReLogin() 공개 메소드

public ReLogin ( ) : bool
리턴 bool