Make httpheader Connection: Keep-Alive into lower-case “keep-alive”
问题 What I tried it to add new header: request.Headers.GetType().InvokeMember("ChangeInternal", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.InvokeMethod, Type.DefaultBinder, request.Headers, new object[] { "Connection", "keep-alive" } ); Actually it adds keep-alive header into Connection but it doesn't replace old one. So I get Connection: Keep-Alive,keep-alive . I tried experimenting with Reflection but didn't got anything working. There is other similar questions about this