[TOC]
Make response data (The server must have Transfer-Encoding)
listen on 5433
cd server
python3 read_server.py
and use MDN example to test
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding
listen on 5432
cd server
python3 mozilla_example_server.py
Other terminal
python3 python_requests_client/main.py 5433
200
<html>
<title></title>
<head>
<META HTTP-EQUIV="Pragma" content="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
...
looks great
python3 python_requests_client/main.py 5432
200
MozillaDeveloperNetwork
:)
curl http://127.0.0.1:5433
<html>
<title></title>
<head>
<META HTTP-EQUIV="Pragma" content="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
...
looks great
curl http://127.0.0.1:5432
MozillaDeveloperNetwork%
looks great too
cd Dio_chunked_issue
dart bin/dio_client_test.dart 5433
22f
<html>
<title></title>
<head>
<META HTTP-EQUIV="Pragma" content="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Content-Type" content="text/html;charset=UTF-8">
some chunked length not removed
cd Dio_chunked_issue
dart bin/dio_client_test.dart 5432
on MDN example hmmm...
MozillaDeveloperNetwork
Success to parse.
Make response data (The server must have Transfer-Encoding)
curl xxx -i --raw > server/raw_response.data