Title: Log HTTP Requests
Author: Matt Gibbs
Published: <strong>2017-يىلى 19-ئىيۇل</strong>
Last modified: 2025-يىلى 11-نويابىر

---

قىستۇرما ئىزدە

![](https://s.w.org/plugins/geopattern-icon/log-http-requests.svg)

# Log HTTP Requests

 يازغۇچى [Matt Gibbs](https://profiles.wordpress.org/mgibbs189/)

[چۈشۈر](https://downloads.wordpress.org/plugin/log-http-requests.zip)

 * [تەپسىلاتلار](https://ug.wordpress.org/plugins/log-http-requests/#description)
 * [باھالاشلار](https://ug.wordpress.org/plugins/log-http-requests/#reviews)
 *  [ئورنىتىش](https://ug.wordpress.org/plugins/log-http-requests/#installation)
 * [ئىجادىيەت](https://ug.wordpress.org/plugins/log-http-requests/#developers)

 [قوللاش](https://wordpress.org/support/plugin/log-http-requests/)

## چۈشەندۈرۈش

#### Log and view all WP HTTP requests

How long do [core / plugin / theme] update checks take to run? What data about my
site is being sent out? What about all those ajax requests? The answers to these
questions are just a few clicks away.

This plugin logs all WP_HTTP requests and displays them in a table listing for easy
viewing. It also stores the runtime of each HTTP request.

#### Available Hooks

Customize the length (in days) before older log items are removed:

    ```
    add_filter( 'lhr_expiration_days', function( $days ) {
        return 7; // default = 1
    });
    ```

Don’t log items from a specific hostname:

    ```
    add_filter( 'lhr_log_data', function( $data ) {
        if ( false !== strpos( $data['url'], 'wordpress.org' ) ) {
            return false;
        }
        return $data;
    });
    ```

In the above example, the `$data` array keys correspond to columns within the `lhr_log`
database table.

#### Important Links

 * [Github ](https://github.com/FacetWP/log-http-requests)

## ئورنىتىش

 1. Download and activate the plugin.
 2. Browse to `Tools > Log HTTP Requests` to view log entries.

## باھالاشلار

![](https://secure.gravatar.com/avatar/c27f26065e2252b8b77b4b7c0171731de172c279478813f74d27a60a432829fc?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin](https://wordpress.org/support/topic/excellent-plugin-9240/)󠁿

 [Jarno Vos](https://profiles.wordpress.org/jarnovos/) 2024-يىلى 24-ئىيۇل

The plugin does exactly what it says it does, and works perfect every time. I’ve
used it quite a lot for troubleshooting purposes and have yet to discover any issues.
Kind regards, Jarno

![](https://secure.gravatar.com/avatar/59b0253e5d04fe15f02efe46a8684eada33ce19105503a68e38e1d7accb7f9d3?
s=60&d=retro&r=g)

### 󠀁[Useful for developing WordPress plugins that make HTTP requests](https://wordpress.org/support/topic/useful-for-developing-wordpress-plugins-that-make-http-requests/)󠁿

 [Auke Piersma](https://profiles.wordpress.org/aukepiersma/) 2024-يىلى 7-ئىيۇن

I use this plugin regularly when developing WordPress plugins that make HTTP requests.
This plugin works great, 5 stars from me.

![](https://secure.gravatar.com/avatar/05448bfe4c5604a871c54cb36df5baeccb2724ebdb648c6870dcdf563076744a?
s=60&d=retro&r=g)

### 󠀁[awesome logs every http request/response](https://wordpress.org/support/topic/awesome-logs-every-http-request-response/)󠁿

 [witoldor](https://profiles.wordpress.org/witoldor/) 2024-يىلى 15-يانۋار

Do what it tells it, do! :)Amazing

![](https://secure.gravatar.com/avatar/12ef3b35f9ada8b41f2b9d0e36c093a0f4c66466f3edecd6adb0a350c972e9cc?
s=60&d=retro&r=g)

### 󠀁[Invaluable Insight for HTTP Requests](https://wordpress.org/support/topic/invaluable-insight-for-http-requests/)󠁿

 [Shahidul Islam](https://profiles.wordpress.org/bdkoder/) 2023-يىلى 11-نويابىر

This plugin has proven to be an indispensable tool for tracking and analyzing HTTP
requests. Its ability to reveal whether a request was made, along with detailed 
insights into the transmitted data and received responses, is simply remarkable.
The clarity it provides is instrumental for troubleshooting and optimizing processes.
A must-have for anyone dealing with HTTP interactions

![](https://secure.gravatar.com/avatar/86c2127742af331f638c0cc52efa510bb24a48733e6f34d19f50a09acee9479c?
s=60&d=retro&r=g)

### 󠀁[Great Troubleshooting Aid](https://wordpress.org/support/topic/great-troubleshooting-aid/)󠁿

 [Robin Cornett](https://profiles.wordpress.org/littlerchicken/) 2021-يىلى 22-سېنتەبىر

This plugin is so helpful for tracking down whether an HTTP request was made at 
all, and when it was, what data was sent and what response was received. It’s invaluable
for tracking down bugs tied to unexpected responses and requests.

![](https://secure.gravatar.com/avatar/41a5c300f799ca67c543f30a59d64778c7e1731e56f9a9f3ab2c09160e18df10?
s=60&d=retro&r=g)

### 󠀁[Bravo 😍](https://wordpress.org/support/topic/bravo-%f0%9f%98%8d/)󠁿

 [Mansour JabinPour – منصور جبین پور](https://profiles.wordpress.org/mansourjabin/)
2021-يىلى 14-ئاۋغۇست

The plugin is very good and useful and I am very grateful to its developer.

 [ 15 باھالاشنىڭ ھەممىنى ئوقۇش ](https://wordpress.org/support/plugin/log-http-requests/reviews/)

## تۆھپىكار ۋە ئىجادكار

«Log HTTP Requests» كودى ئوچۇق يۇمشاق دېتال. تۆۋەندىكى كىشىلەر بۇ قىستۇرمىغا تۆھپە
قوشقان.

تۆھپىكار

 *   [ Matt Gibbs ](https://profiles.wordpress.org/mgibbs189/)

«Log HTTP Requests» 3 تىلغا تەرجىمە قىلىنغان. [تەرجىمانلار](https://translate.wordpress.org/projects/wp-plugins/log-http-requests/contributors)
نىڭ تۆھپىسى ئۈچۈن رەھمەت.

[«Log HTTP Requests» نى تىلىڭىزغا تەرجىمە قىلىڭ](https://translate.wordpress.org/projects/wp-plugins/log-http-requests)

### ئىجادىيەتكە قىزىقامسىز؟

[كودقا كۆز يۈگۈرتۈپ](https://plugins.trac.wordpress.org/browser/log-http-requests/)،
[SVN خەزىنە](https://plugins.svn.wordpress.org/log-http-requests/) تەكشۈرۈپ ياكى
[RSS](https://plugins.trac.wordpress.org/log/log-http-requests/?limit=100&mode=stop_on_copy&format=rss)
ئارقىلىق [ئىجادىيەت خاتىرىسى](https://plugins.trac.wordpress.org/log/log-http-requests/)
گە مۇشتەرى بولغىلى بولىدۇ.

## ئۆزگىرىش خاتىرىسى

#### 1.5.0

 * Security: Fixed SQL injection vulnerabilities in cleanup() and capture_request()
   methods
 * Security: Added prepared statements for all database queries
 * Security: Added input sanitization for POST/GET data with proper type checking
 * Security: Added proper output escaping throughout templates
 * Security: Fixed potential XSS vulnerability in JavaScript table rendering
 * Security: Improved data validation with absint() and floatval() for numeric values
 * Security: Replaced json_encode() with wp_json_encode() for better security
 * Security: Added capability check to settings page for better access control
 * Improvement: Updated WordPress compatibility to 6.8
 * Improvement: Added text domain for internationalization support
 * Improvement: Modernized code to follow WordPress coding standards
 * Improvement: Replaced deprecated current_time(›timestamp‹) with modern WordPress
   functions
 * Improvement: Improved database table creation using dbDelta() and get_charset_collate()

= 1.4.1
 * Fixed PHP8 deprecation notices

#### 1.4

 * Added extra ajax role validation (props pluginvulnerabilities.com)

#### 1.3.2

 * Escaped URL field to prevent possible XSS (props Bishop Fox)

#### 1.3.1

 * Ensured compatibility with WP 5.8

#### 1.3

 * Minor PHP cleanup
 * Ensured compatibility with WP 5.7

#### 1.2

 * Moved «Log HTTP Requests» to the `Tools` menu (props @aaemnnosttv)
 * Added «Status» column to show HTTP response code (props @danielbachhuber)
 * Added prev/next browsing to the detail modal (props @marcissimus)
 * Added keyboard support (up, down, esc) to the detail modal (props @marcissimus)
 * Added raw timestamp to «Date Added» column on hover
 * Added hook docs to the readme

#### 1.1

 * Added `lhr_log_data` hook to customize logged data (return FALSE to skip logging)
 * Added `lhr_expiration_days` hook

#### 1.0.4

 * Minor styling tweak

#### 1.0.3

 * Better visibility for long URLs

#### 1.0.2

 * Minor design tweaks
 * Replaced `json_encode` with `wp_send_json`

#### 1.0.1

 * Tested compatibility against WP 4.9.4

#### 1.0.0

 * Initial release

## Meta

 *  Version **1.5.0**
 *  ئاخىرقى يېڭىلانغان ۋاقىت **6 ئاي بۇرۇن**
 *  ئاكتىپ ئورنىتىش سانى **2,000+**
 *  WordPress نەشرى ** 5.0 ياكى يۇقىرى **
 *  **6.8.5** دا سىنالغان
 *  تىل
 * [English (US)](https://wordpress.org/plugins/log-http-requests/)، [Polish](https://pl.wordpress.org/plugins/log-http-requests/)،
   [Spanish (Chile)](https://cl.wordpress.org/plugins/log-http-requests/) ۋە [Spanish (Spain)](https://es.wordpress.org/plugins/log-http-requests/).
 *  [تىلىڭىزغا تەرجىمە قىلىڭ](https://translate.wordpress.org/projects/wp-plugins/log-http-requests)
 * بەلگە
 * [api](https://ug.wordpress.org/plugins/tags/api/)[log](https://ug.wordpress.org/plugins/tags/log/)
   [requests](https://ug.wordpress.org/plugins/tags/requests/)[update checks](https://ug.wordpress.org/plugins/tags/update-checks/)
   [wp_http](https://ug.wordpress.org/plugins/tags/wp_http/)
 *  [ئالىي كۆرۈنۈش](https://ug.wordpress.org/plugins/log-http-requests/advanced/)

## دەرىجە

 5/5 يۇلتۇز

 *  [  15 5-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/log-http-requests/reviews/?filter=5)
 *  [  0 4-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/log-http-requests/reviews/?filter=4)
 *  [  0 3-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/log-http-requests/reviews/?filter=3)
 *  [  0 2-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/log-http-requests/reviews/?filter=2)
 *  [  0 1-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/log-http-requests/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/log-http-requests/reviews/#new-post)

[بارلىق ئىنكاسنى كۆرسەت](https://wordpress.org/support/plugin/log-http-requests/reviews/)

## تۆھپىكار

 *   [ Matt Gibbs ](https://profiles.wordpress.org/mgibbs189/)

## قوللاش

چۈشەندۈرۈشىڭىز بارمۇ؟ ياردەم لازىممۇ؟

 [قوللاش مۇنبىرىنى كۆرسەت](https://wordpress.org/support/plugin/log-http-requests/)