
C# | Visual Basic | Visual C++ |
public class MultipartForm
Public Class MultipartForm
public ref class MultipartForm

All Members | Constructors | Methods | Properties | Fields | |
Icon | Member | Description |
---|---|---|
![]() | MultipartForm(String) |
Initialize our class for use to send data files.
|
![]() | BeginBoundary |
The string that defines the begining boundary of
our multipart transfer as defined in the w3c specs.
This method also sets the Content and Ending
boundaries as defined by the w3c specs.
|
![]() | BufferSize |
Allows us to determine the size of the buffer used
to send a piece of the file at a time out the IO
stream. Defaults to 1024 * 10.
|
![]() | ContentBoundary |
The string that defines the content boundary of
our multipart transfer as defined in the w3c specs.
|
![]() | coRequest |
Used mainly to avoid passing parameters to other routines.
Could have been local to sendFile().
|
![]() | EndingBoundary |
The string that defines the ending boundary of
our multipart transfer as defined in the w3c specs.
|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | FileContentType |
Used to change the content type of the file being sent.
Currently defaults to: text/xml. Other options are
text/plain or binary
|
![]() | Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | getFileheader(String, Int32) |
Returns the proper content information for the
file we are sending.
|
![]() | getFiletrailer()()() |
Creates the proper ending boundary for the multipart upload.
|
![]() | getFormfields()()() |
Builds the proper format of the multipart data that
contains the form fields and their respective values.
|
![]() | GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
![]() | getPostDataSize(Stream, List<(Of <(String>)>)) | |
![]() | getResponse()()() |
Here we actually make the request to the web server and
retrieve it's response into a text buffer.
|
![]() | getStream()()() |
Determines if we have a file stream set, and returns either
the HttpWebRequest stream of the file.
|
![]() | GetType()()() | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ResponseText |
The data returned to us after the transfer is completed.
|
![]() | sendFile(String, Session) |
Transmits a file to the web server stated in the
URL property. You may call this several times and it
will use the values previously set for fields and URL.
|
![]() | sendFiles(List<(Of <(String>)>), Session) | |
![]() | setField(String, String) |
Allows you to add some additional field data to be
sent along with the transfer. This is usually used
for things like userid and password to validate the
transfer.
|
![]() | setFilename(String) |
Used to signal we want the output to go to a
text file verses being transfered to a URL.
|
![]() | ToString()()() | (Inherited from Object.) |
![]() | TransferHttpVersion |
Allows you to specify the specific version of HTTP to use for uploads.
The dot NET stuff currently does not allow you to remove the continue-100 header
from 1.1 and 1.0 currently has a bug in it where it adds the continue-100. MS
has sent a patch to remove the continue-100 in HTTP 1.0.
|
![]() | URL |
The web address of the recipient of the transfer.
|
![]() | writeFile(Stream, String) |
Reads in the file a chunck at a time then sends it to the
output stream.
|
![]() | writeString(Stream, String) |
Mainly used to turn the string into a byte buffer and then
write it to our IO stream.
|

Object | |
![]() | MultipartForm |