maxurl http_auth bug

Rafal Zalech's icon

Hi,
I'm talking with my server thru "post" commands in [maxurl] which worked just fine until the last official max 8.1 ver. In the beta version (8.2.0 (f87939c5779) (arm64 mac) ) I get an error 406 as a response.

{
    "http_method" : "post",
    "http_auth" : "user:passWord",
    "url" : "https://www.mypage.eu/addpost.php",
    "parse_type" : "json",
    "post_data" :     {
        "appVersion" : 2.01
        }
}

A response I get from the server with Max 8.1.11

{
    "body" : " \n",
    "header" : "HTTP/2 401 \r\naccess-control-allow-origin: *\r\naccess-control-allow-headers: X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization\r\naccess-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE\r\nwww-authenticate: Basic\r\ncontent-type: text/html; charset=UTF-8\r\ndate: Mon, 27 Sep 2021 12:18:42 GMT\r\nserver: LiteSpeed\r\nvary: User-Agent\r\nalt-svc: h3=\":443\"; ma=2592000, h3-29=\":443\"; ma=2592000, h3-Q050=\":443\"; ma=2592000, h3-Q046=\":443\"; ma=2592000, h3-Q043=\":443\"; ma=2592000, quic=\":443\"; ma=2592000; v=\"43,46\"\r\n\r\nHTTP/2 200 \r\naccess-control-allow-origin: *\r\naccess-control-allow-headers: X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization\r\naccess-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE\r\ncontent-type: text/html; charset=UTF-8\r\ndate: Mon, 27 Sep 2021 12:18:42 GMT\r\nserver: LiteSpeed\r\nvary: User-Agent\r\n\r\n",
    "status" : 200,
    "connect_code" : 0,
    "url" : "https://www.****.eu/addpost.php",
    "file_time" : -1,
    "total_time" : 0.333188,
    "size_upload" : 866.0,
    "size_download" : 3.0,
    "content_length_download" : -1.0,
    "content_length_upload" : 866.0,
    "content_type" : "text/html; charset=UTF-8"
}

A response I get from the server with Max 8.2 beta:

{
    "header" : "HTTP/1.1 406 Not Acceptable\r\nConnection: Keep-Alive\r\nKeep-Alive: timeout=5, max=100\r\ncontent-type: text/html\r\nlast-modified: Mon, 28 Jun 2021 16:29:41 GMT\r\netag: \"308-60d9f8f5-8b384b5576cbd560;;;\"\r\naccept-ranges: bytes\r\ncontent-length: 776\r\ndate: Mon, 27 Sep 2021 12:22:40 GMT\r\nserver: LiteSpeed\r\nvary: User-Agent\r\nalt-svc: h3=\":443\"; ma=2592000, h3-29=\":443\"; ma=2592000, h3-Q050=\":443\"; ma=2592000, h3-Q046=\":443\"; ma=2592000, h3-Q043=\":443\"; ma=2592000, quic=\":443\"; ma=2592000; v=\"43,46\"\r\n\r\n",
    "status" : 406,
    "connect_code" : 0,
    "url" : "https://www.****.eu/addpost.php",
    "file_time" : -1,
    "total_time" : 0.239584,
    "size_upload" : 894.0,
    "size_download" : 776.0,
    "content_length_download" : 776.0,
    "content_length_upload" : 894.0,
    "content_type" : "text/html"
}


Jeremy's icon

Hi, if you have a stripped down patcher to demonstrate the problem, please send it (privately, I/we won't share your login credentials) to jeremy (at) c74.