XenAPI.HTTP.PUT C# (CSharp) Method

PUT() public static method

public static PUT ( Uri uri, IWebProxy proxy, long ContentLength, int timeout_ms ) : Stream
uri System.Uri
proxy IWebProxy
ContentLength long
timeout_ms int
return Stream
        public static Stream PUT(Uri uri, IWebProxy proxy, long ContentLength, int timeout_ms)
        {
            return DO_HTTP(uri, proxy, false, timeout_ms,
                string.Format("PUT {0} HTTP/1.0", uri.PathAndQuery),
                string.Format("Host: {0}", uri.Host),
                string.Format("Content-Length: {0}", ContentLength));
        }

Usage Example

Esempio n. 1
0
 public static Stream PUT(Uri uri, long ContentLength, bool timeout, bool do_log)
 {
     if (do_log)
     {
         log.DebugFormat("HTTP PUTTING file to {0}", uri);
     }
     return(HTTP.PUT(uri, XenAdminConfigManager.Provider.GetProxyFromSettings(null), ContentLength, XenAdminConfigManager.Provider.GetProxyTimeout(timeout)));
 }
All Usage Examples Of XenAPI.HTTP::PUT