Re: Correct value of parameter uploaded_file

On Monday 06 December 2010, Mehmet Erdal ÖZKINACI wrote:
> I get html result whether I add output=soap12 or not.

Not sure if this helps, but:

> My function is
> 
>         private void ValidateFile(string urlOfTool, string fileToValidate)
>         {
>             string boundary = "----------------------------" + DateTime.Now.Ticks.ToString("x");
> 
>             string data = "--" + boundary + "\r\n";
>             //data += "Content-Disposition: form-data; name=\"output\"\r\n";

I think you need to add another \r\n here.

>             //data += "soap12" + "\r\n";
>             //data += "--" + boundary + "\r\n";
>             data += "Content-Disposition: form-data; name=\"uploaded_file\"; filename=\"" + fileToValidate + "\"\r\n";
>             data += "Content-Type: text/html\r\n";

And here.

>             byte[] dataByte = System.Text.Encoding.UTF8.GetBytes(data);
[...]

Received on Monday, 6 December 2010 09:14:52 UTC