12:20:46.435 [info] Web request: https://1337x.to/torrent/3490955/-Irozuku-Sekai-no-Ashita-kara/
<<60, 33, 68, 79, 67, 84, 89, 80, 69, 32, 104, 116, 109, 108, 62, 10, 60, 104,
116, 109, 108, 62, 10, 60, 104, 101, 97, 100, 62, 10, 60, 109, 101, 116, 97,
32, 99, 104, 97, 114, 115, 101, 116, 61, 34, 117, 116, 102, 45, 56, ...>>
12:20:46.609 [info] Web request: https://1337x.to/torrent/3490541/DB-Seishun-Buta-Yarou-wa-Bunny-Girl-Senpai-no-Yume-wo-Minai-Rascal-Does-Not-Dream-of-Bunny-Girl-Senpai-10bit-1080p-HEVC-x265/
"<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n<title>Download [DB] Seishun Buta Yarou wa Bunny Girl Senpai no Yume wo Minai | Rascal Does Not Dream of Bunny Girl S...
I’m using httpc to make a GET request to this URL and converting the result to a string.
{:ok, {{_http, 200, 'OK'}, _headers, body}} = :httpc.request(:get, {url, headers}, [], [])
{:ok, List.to_string(body)}
The charlist of body
, the raw body httpc returns before I try to List.to_string
it is:
[60, 33, 68, 79, 67, 84, 89, 80, 69, 32, 104, 116, 109, 108, 62, 10, 60, 104,
116, 109, 108, 62, 10, 60, 104, 101, 97, 100, 62, 10, 60, 109, 101, 116, 97,
32, 99, 104, 97, 114, 115, 101, 116, 61, 34, 117, 116, 102, 45, 56, ...]
Other URLs body convert normally to the expected HTML payload. It’s only this one that converts to this type of result.
Using a DIFF tool the only meaningful difference I see between broken vs. working is the broken has japanese letters present. (Left: Broken - Right: Working)
-
What is this kind of result?
-
Can I detect if this type of result is returned and skip it?