Container for HTTP file
示例#1
0
 private static string GetMultipartFileHeader(HttpFile file)
 {
     return string.Format ("--{0}{4}Content-Disposition: form-data; name=\"{1}\"; filename=\"{2}\"{4}Content-Type: {3}{4}{4}",
         FormBoundary, file.Name, file.FileName, file.ContentType ?? "application/octet-stream", _lineBreak);
 }
示例#2
0
 private static string GetMultipartFileHeader(HttpFile file)
 {
     return string.Format(
         "--{0}{4}Content-Disposition: form-data; name=\"{1}\"; filename=\"{2}\"{4}Content-Type: {3}{4}{4}",
         FORM_BOUNDARY, file.Name, file.FileName, file.ContentType ?? "application/octet-stream", LINE_BREAK);
 }
示例#3
0
 private string GetMultipartFileHeader(HttpFile file)
 {
     return(string.Format("--{0}{4}Content-Disposition: form-data; name=\"{1}\"; filename=\"{2}\"{4}Content-Type: {3}{4}{4}",
                          FormBoundary, file.Name, file.FileName, file.ContentType ?? "application/octet-stream", Environment.NewLine));
 }
示例#4
0
 private string GetMultipartFileHeader(HttpFile file)
 {
     return string.Format ("--{0}{3}Content-Disposition: form-data; name=\"{1}\"; filename=\"{1}\"{3}Content-Type: {2}{3}{3}",
         FormBoundary, file.FileName, file.ContentType ?? "application/octet-stream", Environment.NewLine);
 }
示例#5
0
文件: Http.cs 项目: zaus/RestSharp
 private static string GetMultipartFileHeader(HttpFile file)
 {
     return(string.Format(
                "--{0}{4}Content-Disposition: form-data; name=\"{1}\"; filename=\"{2}\"{4}Content-Type: {3}{4}{4}",
                FORM_BOUNDARY, file.Name, file.FileName, file.ContentType ?? "application/octet-stream", LINE_BREAK));
 }