Property | Type | Description | |
---|---|---|---|
coRequest |
Method | Description | |
---|---|---|
MultipartForm ( string url ) : System |
Initialize our class for use to send data files.
|
|
getFileheader ( string aFilename ) : string |
Returns the proper content information for the file we are sending. Hits Patel reported a bug when used with ActiveFile. Added semicolon after sendfile to resolve that issue. Tested for compatibility with IIS 5.0 and Java. |
|
getFiletrailer ( ) : string |
Creates the proper ending boundary for the multipart upload.
|
|
getFormfields ( ) : string |
Builds the proper format of the multipart data that contains the form fields and their respective values.
|
|
getResponse ( ) : void |
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.
|
|
sendFile ( string aFilename, |
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.
|
|
sendFile ( string aFilename, Stream readIn, |
||
sendFile ( string aFilename, byte data, |
||
setField ( string key, string str ) : void |
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 path ) : void |
Used to signal we want the output to go to a text file verses being transfered to a URL.
|
|
writeString ( System io, string str ) : void |
Mainly used to turn the string into a byte buffer and then write it to our IO stream.
|
public MultipartForm ( string url ) : System | ||
url | string | The web address of the recipient of the data transfer. |
return | System |
public getFileheader ( string aFilename ) : string | ||
aFilename | string | |
return | string |
public sendFile ( string aFilename, |
||
aFilename | string | The full path of file being transfered. |
cookies | ||
return | void |
public sendFile ( string aFilename, Stream readIn, |
||
aFilename | string | |
readIn | Stream | |
cookies | ||
return | void |
public sendFile ( string aFilename, byte data, |
||
aFilename | string | |
data | byte | |
cookies | ||
return | void |
public setField ( string key, string str ) : void | ||
key | string | The form field name |
str | string | The form field value |
return | void |
public writeString ( System io, string str ) : void | ||
io | System | The io stream for output. |
str | string | The data to write. |
return | void |