XenAPI.HTTP.GET C# (CSharp) Method

GET() public static method

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

Usage Example

Example #1
0
 public static Stream GET(Uri uri, IXenConnection connection, bool timeout, bool do_log, bool isForXenServer = true)
 {
     if (do_log)
     {
         log.DebugFormat("HTTP GETTING file from {0}", uri);
     }
     return(HTTP.GET(uri, XenAdminConfigManager.Provider.GetProxyFromSettings(connection, isForXenServer), XenAdminConfigManager.Provider.GetProxyTimeout(timeout)));
 }
All Usage Examples Of XenAPI.HTTP::GET