Class | Curl::PostField |
In: |
ext/curb_postfield.c
|
Parent: | Object |
Create a new Curl::PostField, supplying the field name, content, and, optionally, Content-type (curl will attempt to determine this if not specified).
The block form allows a block to supply the content for this field, called during the perform. The block should return a ruby string with the field data.
Create a new Curl::PostField for a file upload field, supplying the local filename to read from, and optionally the remote filename (defaults to the local name).
The block form allows a block to supply the content for this field, called during the perform. The block should return a ruby string with the field data.
Set the POST field content for this PostField. Ignored when a content_proc is supplied via either +Curl::PostField.file+ or set_content_proc.
Set the POST field Content-type for this PostField.
Set the POST field local filename for this PostField (when performing a file upload). Ignored when a content_proc is supplied via either +Curl::PostField.file+ or set_content_proc.
Set a content proc for this field. This proc will be called during the perform to supply the content for this field, overriding any setting of content or local_file.