Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HTTP] Redirection does not work if location contains just a local path #2604

Closed
Oldes opened this issue Jul 11, 2024 · 0 comments
Closed

[HTTP] Redirection does not work if location contains just a local path #2604

Oldes opened this issue Jul 11, 2024 · 0 comments

Comments

@Oldes
Copy link
Owner

Oldes commented Jul 11, 2024

Like in this case:

>> read https://www.cbdb.cz/hledat?text=%22No%C4%8Dn%C3%AD+klub+2%22
 [HTTP] Opening connection: tls://www.cbdb.cz:443
 [HTTP] Request: {GET /hledat?text="Noční+klub+2" HTTP/1.1^M
Host: www.cbdb.cz^M
Accept: */*^M
Accept-charset: utf-8^M
Accept-Encoding: gzip,deflate,br^M
User-Agent: rebol/3.17.1 (Windows; x64)^M
}
 [HTTP] HTTP/1.1 302 Found
 [HTTP] Headers: [
    Content-Length: "0"
    Content-Encoding: none
    Transfer-Encoding: none
    Last-Modified: none
    Server: "nginx"
    Date: "Thu, 11 Jul 2024 10:26:36 GMT"
    Content-Type: "text/html; charset=UTF-8"
    Connection: "keep-alive"
    Keep-Alive: "timeout=20"
    Set-Cookie: "PHPSESSID=bt2gfagp9oabh68pk0de4q5c32; path=/"
    Expires: "Thu, 19 Nov 1981 08:52:00 GMT"
    Cache-Control: "no-store, no-cache, must-revalidate"
    Pragma: "no-cache"
    location: "kniha-1502-nocni-klub-2-nocni-klub-2"
]
 [HTTP] Redirect to: "kniha-1502-nocni-klub-2-nocni-klub-2"

** Script error: path new-uri/host is not valid for none! type
** Where: do-redirect switch while sync-op either read
** Near: do-redirect port port/state/info/headers/location state: por...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant