https://bugzilla.novell.com/show_bug.cgi?id=333985#c6





--- Comment #6 from Jerome Haltom <[EMAIL PROTECTED]>  2007-11-05 11:04:19 MST 
---
Sorry, host name adjusted:

using System;
using System.IO;
using System.Net;

class Test
{
  public static void Main(string[] args)
  {
    FtpWebRequest r =
(FtpWebRequest)FtpWebRequest.Create("ftp://65.99.218.194/foo.txt";);
    r.Credentials = new NetworkCredential("ftptest", "testftp");
    r.Method = WebRequestMethods.Ftp.UploadFile;
    r.ContentLength = 1;
    r.UseBinary = true;
    Stream s = r.GetRequestStream();
    s.WriteByte(0x00);
    s.Close();
    FtpWebResponse p = (FtpWebResponse)r.GetResponse();
    Console.WriteLine(p.StatusCode);
  }
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to