C# 클래스 CurlSharp.CurlHttpMultiPartForm

Wraps a section of multipart form data to be submitted via the CurlOption.HttpPost option in the CurlEasy.SetOpt member of the CurlEasy class.
상속: IDisposable
파일 보기 프로젝트 열기: WarlaxZ/Jackett 1 사용 예제들

공개 메소드들

메소드 설명
AddSection ( ) : CurlFormCode

Add a multi-part form section.

This is definitely the workhorse method for this class. It should be called in roughly the same manner as curl_formadd(), except you would omit the first two struct curl_httppost** arguments (firstitem and lastitem), which are wrapped in this class. So you should pass arguments in the following sequence:

CurlHttpMultiPartForm.AddSection(option1, value1, ..., optionX, valueX, CurlFormOption.End) ;

For a complete list of possible options, see the documentation for the CurlFormOption enumeration.

The pointer options (PtrName, etc.) make an internal copy of the passed byte array. Therefore, any changes you make to the client copy of this array AFTER calling this method, won't be reflected internally with cURL. The purpose of providing the pointer options is to support the posting of non-string binary data.
CurlHttpMultiPartForm ( ) : System

Constructor

Dispose ( ) : void

Free unmanaged resources.

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void
GetHandle ( ) : IntPtr

메소드 상세

AddSection() 공개 메소드

Add a multi-part form section.
This is definitely the workhorse method for this class. It should be called in roughly the same manner as curl_formadd(), except you would omit the first two struct curl_httppost** arguments (firstitem and lastitem), which are wrapped in this class. So you should pass arguments in the following sequence:

CurlHttpMultiPartForm.AddSection(option1, value1, ..., optionX, valueX, CurlFormOption.End) ;

For a complete list of possible options, see the documentation for the CurlFormOption enumeration.

The pointer options (PtrName, etc.) make an internal copy of the passed byte array. Therefore, any changes you make to the client copy of this array AFTER calling this method, won't be reflected internally with cURL. The purpose of providing the pointer options is to support the posting of non-string binary data.
public AddSection ( ) : CurlFormCode
리턴 CurlFormCode

CurlHttpMultiPartForm() 공개 메소드

Constructor
/// This is thrown /// if hasn't bee properly initialized. ///
public CurlHttpMultiPartForm ( ) : System
리턴 System

Dispose() 공개 메소드

Free unmanaged resources.
public Dispose ( ) : void
리턴 void