Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter demidarus

    (@demidarus)

    This is the HTTP Response that i get from the update plugins API:

    
    array (size=6)
      'headers' => 
        object(Requests_Utility_CaseInsensitiveDictionary)[1465]
          protected 'data' => 
            array (size=5)
              'server' => string 'nginx' (length=5)
              'date' => string 'Thu, 25 Aug 2022 15:19:35 GMT' (length=29)
              'content-type' => string 'text/plain; charset=utf-8' (length=25)
              'x-frame-options' => string 'SAMEORIGIN' (length=10)
              'x-nc' => string 'ord 7' (length=5)
      'body' => string 'error' (length=5)
      'response' => 
        array (size=2)
          'code' => int 200
          'message' => string 'OK' (length=2)
      'cookies' => 
        array (size=0)
          empty
      'filename' => null
      'http_response' => 
        object(WP_HTTP_Requests_Response)[1461]
          protected 'response' => 
            object(Requests_Response)[1462]
              public 'body' => string 'error' (length=5)
              public 'raw' => string 'HTTP/1.1 200 OK
    Server: nginx
    Date: Thu, 25 Aug 2022 15:19:35 GMT
    Content-Type: text/plain; charset=utf-8
    Transfer-Encoding: chunked
    Connection: close
    X-Frame-Options: SAMEORIGIN
    X-nc:  ord 7
    
    error' (length=207)
              public 'headers' => 
                object(Requests_Response_Headers)[1463]
                  ...
              public 'status_code' => int 200
              public 'protocol_version' => float 1.1
              public 'success' => boolean true
              public 'redirects' => int 0
              public 'url' => string 'https://api.wordpress.org/plugins/update-check/1.1/' (length=51)
              public 'history' => 
                array (size=0)
                  ...
              public 'cookies' => 
                object(Requests_Cookie_Jar)[1460]
                  ...
          protected 'filename' => null
          public 'data' => null
          public 'headers' => null
          public 'status' => null
    
    • This reply was modified 3 years, 7 months ago by demidarus.
Viewing 1 replies (of 1 total)