so now.. is there any example of how you can handl...
# ktor
so now.. is there any example of how you can handle url redirects on ktor-client manually? i am dealing with a api returning me incorrectly escaped urls, and with fuel i just disabled redirects and looped until it finally resulted in a file
have you reported the issue you have with escaping, so we can fix it?
i can do so.. my fix is now i am stuck on some jar from jenkins not working due to content-type, seems like the header is lowercase ?
i have to go soon, i hope i will remember to do a proper report on github
okay, thanks!
now how to handle files like this: it has a empty header value for content-encoding i hate people who do this to me
Copy code
< HTTP/1.1 200 OK
< Content-Type: application/octet-stream
< Content-Length: 26034
< Connection: keep-alive
< Date: Tue, 23 Jan 2018 01:34:55 GMT
< Last-Modified: Sat, 20 Jan 2018 18:12:27 GMT
< ETag: "0d9a0429c72bc1c06358f1166bdd8c59"
< Content-Encoding:
< Accept-Ranges: bytes
< Server: AmazonS3
< Age: 2954
< X-Cache: Hit from cloudfront
< Via: 1.1 ...(CloudFront)
< X-Amz-Cf-Id: ...
Yep, loops like that. What do you mean by how to handle?
Do you have an exception or something when downloading?
well curl and chrome can download it just fine.. so how can i instruct HttpClient to ignore those "excpected" errors ?
let me check if I can find a workaround
cool, i will be back later.. i am running late
@e5l it seems that
if (range.start == range.end) throw ParserException("No HTTP header value provided for name ${builder.substring(nameStart, nameEnd)}: \n$builder")
(or at least should be a way to disable that verification) since the request is still valid, chrome, curl and wget can download it
👌 1
👀 2