يسمح البرنامج النصي HttpStackHeaders.cs بعرض الطلب أو الاستجابة أو كلا الرأسين في الاستجابة، في التقرير عبر الإنترنت.

ملف نصي مخصص الحجج
رؤوس httpStack.cs <ShowMode> “TargetUrl>”<

HttpStackHeaders.cs المعلمات المتاحة:

  • <وضع العرض> – القيمة الصحيحة الرقمية. إذا تم تعيينه إلى
    1
    ، طباعة رؤوس الطلبات. إذا تم تعيينه إلى
    2
    ، فسيقوم بطباعة رؤوس الاستجابة ؛ قيم أخرى – طباعة رؤوس من كلا النوعين في التقرير عبر الإنترنت.
  • <عنوان URL> المستهدف – عنوان للمراقبة. يجب أن يتم توفيرها في علامات اقتباس مزدوجة.

امثله

إظهار رؤوس الطلبات:

HttpStackHeaders.cs 1 "www.dotcom-monior.com"

عينة الإخراج:

2020-07-30 09:38:59.520 DOTCOM-MONITOR STEP. GET https://www.dotcom-monitor.com
2020-07-30 09:39:00.778 DOTCOM-MONITOR STEP. Response duration 1237 ms. Body size 216117 bytes
2020-07-30 09:39:00.778 DOTCOM-MONITOR STEP. ******************** Request headers:
2020-07-30 09:39:00.778 DOTCOM-MONITOR STEP. Accept: */*
2020-07-30 09:39:00.778 DOTCOM-MONITOR STEP. User-Agent: Mozilla/4.0 (compatible; MSIE 6.0)
2020-07-30 09:39:00.778 DOTCOM-MONITOR STEP. Monitored Successfull

إظهار رؤوس الاستجابات:

HttpStackHeaders.cs 2 "www.dotcom-monior.com"

عينة الإخراج:

2020-07-30 09:41:20.830 DOTCOM-MONITOR STEP. GET https://www.dotcom-monitor.com/
2020-07-30 09:41:21.998 DOTCOM-MONITOR STEP. Response duration 1150 ms. Body size 216117 bytes
2020-07-30 09:41:21.998 DOTCOM-MONITOR STEP. ******************** Response headers:
2020-07-30 09:41:21.998 DOTCOM-MONITOR STEP. Connection: keep-alive
2020-07-30 09:41:21.998 DOTCOM-MONITOR STEP. Keep-Alive: timeout=20
2020-07-30 09:41:21.999 DOTCOM-MONITOR STEP. Vary: Accept-Encoding,Accept-Encoding,Accept-Encoding,Cookie
2020-07-30 09:41:21.999 DOTCOM-MONITOR STEP. Link: &lt;https://www.dotcom-monitor.com/wp-json/&gt;; rel="https://api.w.org/",&lt;https://www.dotcom-monitor.com/&gt;; rel=shortlink
2020-07-30 09:41:21.999 DOTCOM-MONITOR STEP. X-Cacheable: SHORT
2020-07-30 09:41:21.999 DOTCOM-MONITOR STEP. X-Cache: HIT: 5
2020-07-30 09:41:21.999 DOTCOM-MONITOR STEP. X-Cache-Group: normal
2020-07-30 09:41:21.999 DOTCOM-MONITOR STEP. Accept-Ranges: bytes
2020-07-30 09:41:21.999 DOTCOM-MONITOR STEP. Content-Length: 216117
2020-07-30 09:41:21.999 DOTCOM-MONITOR STEP. Cache-Control: max-age=600, must-revalidate
2020-07-30 09:41:21.999 DOTCOM-MONITOR STEP. Content-Type: text/html; charset=UTF-8
2020-07-30 09:41:21.999 DOTCOM-MONITOR STEP. Date: Thu, 30 Jul 2020 14:41:21 GMT
2020-07-30 09:41:21.999 DOTCOM-MONITOR STEP. Expires: Thu, 30 Jul 2020 14:40:12 GMT
2020-07-30 09:41:21.999 DOTCOM-MONITOR STEP. Server: nginx
2020-07-30 09:41:21.999 DOTCOM-MONITOR STEP. X-Powered-By: WP Engine
2020-07-30 09:41:21.999 DOTCOM-MONITOR STEP. Monitored Successfull

يعرض رؤوس الاستجابة والطلبات:

HttpStackHeaders.cs 3 "www.dotcom-monior.com"

عينة الإخراج:

2020-07-30 09:42:27.756 DOTCOM-MONITOR STEP. GET https://www.dotcom-monitor.com/
2020-07-30 09:42:28.851 DOTCOM-MONITOR STEP. Response duration 1069 ms. Body size 216117 bytes
2020-07-30 09:42:28.851 DOTCOM-MONITOR STEP. ******************** Request headers:
2020-07-30 09:42:28.851 DOTCOM-MONITOR STEP. Accept: */*
2020-07-30 09:42:28.851 DOTCOM-MONITOR STEP. User-Agent: Mozilla/4.0 (compatible; MSIE 6.0)
2020-07-30 09:42:28.851 DOTCOM-MONITOR STEP. ******************** Response headers:
2020-07-30 09:42:28.851 DOTCOM-MONITOR STEP. Connection: keep-alive
2020-07-30 09:42:28.852 DOTCOM-MONITOR STEP. Keep-Alive: timeout=20
2020-07-30 09:42:28.852 DOTCOM-MONITOR STEP. Vary: Accept-Encoding,Accept-Encoding,Accept-Encoding,Cookie
2020-07-30 09:42:28.852 DOTCOM-MONITOR STEP. Link: &lt;https://www.dotcom-monitor.com/wp-json/&gt;; rel="https://api.w.org/",&lt;https://www.dotcom-monitor.com/&gt;; rel=shortlink
2020-07-30 09:42:28.852 DOTCOM-MONITOR STEP. X-Cacheable: SHORT
2020-07-30 09:42:28.852 DOTCOM-MONITOR STEP. X-Cache: HIT: 9
2020-07-30 09:42:28.852 DOTCOM-MONITOR STEP. X-Cache-Group: normal
2020-07-30 09:42:28.852 DOTCOM-MONITOR STEP. Accept-Ranges: bytes
2020-07-30 09:42:28.852 DOTCOM-MONITOR STEP. Content-Length: 216117
2020-07-30 09:42:28.852 DOTCOM-MONITOR STEP. Cache-Control: max-age=600, must-revalidate
2020-07-30 09:42:28.852 DOTCOM-MONITOR STEP. Content-Type: text/html; charset=UTF-8
2020-07-30 09:42:28.852 DOTCOM-MONITOR STEP. Date: Thu, 30 Jul 2020 14:42:28 GMT
2020-07-30 09:42:28.852 DOTCOM-MONITOR STEP. Expires: Thu, 30 Jul 2020 14:40:12 GMT
2020-07-30 09:42:28.852 DOTCOM-MONITOR STEP. Server: nginx
2020-07-30 09:42:28.852 DOTCOM-MONITOR STEP. X-Powered-By: WP Engine
2020-07-30 09:42:28.852 DOTCOM-MONITOR STEP. Monitored Successfull