Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
3.5 KiB

  1. // **************************************************************************
  2. // Copyright (c) 1999 Microsoft Corporation.
  3. //
  4. // File: HIProv.mof
  5. //
  6. // Description:
  7. // MOF file for the HTTP instance provider.
  8. // Contains instances required to register this provider with
  9. // WBEM, and the definition of the class that this provider provides.
  10. //
  11. // History:
  12. //
  13. // **************************************************************************
  14. /////////////////////////////////////////////////////////////////////
  15. // Declare an instance of the __Win32Provider so as to "register" the
  16. // HTTP provider
  17. #pragma Namespace("\\root\\cimv2\\MicrosoftHealthMonitor")
  18. instance of __Win32Provider as $P
  19. {
  20. Name = "HTTPProvider" ;
  21. ClsId = "{DDE61D4B-D717-45db-B737-94DA5A63193C}" ;
  22. } ;
  23. instance of __InstanceProviderRegistration
  24. {
  25. Provider = $P;
  26. SupportsPut = FALSE;
  27. SupportsGet = TRUE;
  28. SupportsDelete = FALSE;
  29. SupportsEnumeration = FALSE;
  30. };
  31. /////////////////////////////////////////////////////////////////////
  32. //
  33. // Declare a class whose dynamic instances are provided by the
  34. // sample provider.
  35. [dynamic, provider("HTTPProvider")]
  36. class HTTPProvider
  37. {
  38. [key,MaxLen(20), Description("HTTP Verb")]
  39. String Method="GET";
  40. [key,MaxLen(4096), Description("Url requested")]
  41. String Url="";
  42. [key, Description("Timeout in milliseconds")]
  43. uint32 TimeoutMsecs=30000;
  44. [key,MaxLen(8), Description("Protocol to use in the request")]
  45. String RequestProtocol="HTTP/1.1";
  46. [key, Description("Authentication method to use for requesting the http document")]
  47. uint32 AuthType=0;
  48. [key, write, MaxLen(256), Description("Username for authentication")]
  49. String AuthUser="";
  50. [key, write, MaxLen(256), Description("Password for authentication")]
  51. String AuthPassword="";
  52. [key, MaxLen(256), Description("Proxy Server to use")]
  53. String ProxyServer="";
  54. [key, write, Description("Username for Proxy Server if it requires authentication")]
  55. String PSAuthUser="";
  56. [key, write, Description("Password for Proxy Server if it requires authentication")]
  57. String PSAuthPassword="";
  58. [key, MaxLen(1024), Description("Extra headers to include in the request")]
  59. String ExtraHeaders="";
  60. [key, MaxLen(4096), Description("Data to pass in a POST request")]
  61. String PostData="";
  62. [key, Description("Automatic redirection allowed")]
  63. boolean FollowRedirects=TRUE;
  64. [key, Description("Length of the response to store in the buffer")]
  65. uint32 ResponseLength=131072;
  66. [key, Description("TRUE if a binary buffer is expected in response")]
  67. boolean ExpectBinaryResponse=FALSE;
  68. [read, Description("HTTP Status Code")]
  69. uint32 StatusCode=0;
  70. [read, Description("HTTP Status Text")]
  71. String StatusText="";
  72. [read, Description("Content length header")]
  73. uint32 ContentLength=0;
  74. [read, Description("Text buffer containing the response")]
  75. String TextResponse="";
  76. [read, Description("Binary response storage array")]
  77. uint8 BinaryResponse[];
  78. [read, Description("Protocol received in the response")]
  79. String ResponseProtocol="";
  80. [read, Description("Buffer of the headers received")]
  81. String RawHeaders="";
  82. [read, Description("Content-type header")]
  83. String ContentType="";
  84. [read, Description("Cookie-header received")]
  85. String Cookie="";
  86. [read, Description("Last-modified header")]
  87. String LastModified="";
  88. [read, Description("Time occurred to handle the request")]
  89. uint32 ResponseTime=0;
  90. [read, Description("Description of LastError occurred, if any")]
  91. String ErrorDescription="";
  92. [read, Description("Number of bytes downloaded from host")]
  93. uint32 ReceivedBytes=0;
  94. };