Why does UnityWebRequest.SetRequestHeader prevent us to edit specific header fields ?
Hi,
I got severals problems with the WWW
class and I was looking for solutions to replace it. I found out that the UnityEngine.Networking
classes exist recently and this seems to be a great solution for my problem.
But, The UnityWebRequest.SetRequestHeader
method doesn't let me edit specific header fields such as user-agent
nor accept-encoding
.
According to the 5.5 beta scripting API, I will be able to modify the second one at my own risks, but not the first one: https://docs.unity3d.com/550/Documentation/ScriptReference/Networking.UnityWebRequest.SetRequestHeader.html
I'm using user-agent
to send specific data to my back-end about my app version and about the device. Why can't I simply append my custom data to this header field ? (at my own risk)
I don't understand. Can anyone please explain me why?
Your answer
![](https://koobas.hobune.stream/wayback/20220612101326im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
UNet Networking problem 1 Answer
NetworkManager how StartMatchMaker works? ListMatches not getting my server. 0 Answers
Enter/Exit Vehicle With UNet 1 Answer
CommandAttribute doesn't work properly 1 Answer
Looking for a Simple MultiPlayer Server 0 Answers