🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Access to HTTP Headers?

    Features Wish List
    1
    1
    2.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      notdodgy
      last edited by

      I am using a Atom Matrix.
      My aim is to query a YouTube Channel to see if it is live or not. The Display on the Atom will used to give a simple status display.
      According to the article I found on getting the live stream status, the length of the live header is half the length of the not live header.

      My problem is as soon as I try and read the HTTP response with Get Data, it fails, though the response code is 200, which suggests success.

      I realise I may be doing something wrong.
      It may be the response is too big for the device to process?
      The url returns a lot, including video streams, in a normal browser.

      Is there a way to just get the returned headers?
      Or get the length of the returned data?

      Example Code:
      0_1634495247367_617f7a08-6981-451f-afb6-d3495a83094d-image.png

      1 Reply Last reply Reply Quote 0
      • First post
        Last post