JohnP55
JohnP55
CC#
Created by JohnP55 on 1/13/2023 in #help
❔ So I'm writing an API for a game in C#, and I need the User-Agent to be an empty string.
thank you so much for the help
20 replies
CC#
Created by JohnP55 on 1/13/2023 in #help
❔ So I'm writing an API for a game in C#, and I need the User-Agent to be an empty string.
Yep I got it to work now
20 replies
CC#
Created by JohnP55 on 1/13/2023 in #help
❔ So I'm writing an API for a game in C#, and I need the User-Agent to be an empty string.
Still getting Cloudflare error code 1020, so there's something left I'll have to look into
20 replies
CC#
Created by JohnP55 on 1/13/2023 in #help
❔ So I'm writing an API for a game in C#, and I need the User-Agent to be an empty string.
20 replies
CC#
Created by JohnP55 on 1/13/2023 in #help
❔ So I'm writing an API for a game in C#, and I need the User-Agent to be an empty string.
Unhandled exception. System.FormatException: The format of value '<null>' is invalid.
at System.Net.Http.Headers.HttpHeaderParser.ParseValue(String value, Object storeValue, Int32& index)
at System.Net.Http.Headers.HttpHeaders.ParseAndAddValue(HeaderDescriptor descriptor, HeaderStoreItemInfo info, String value)
at System.Net.Http.Headers.HttpHeaders.Add(HeaderDescriptor descriptor, String value)
at System.Net.Http.Headers.HttpHeaders.Add(String name, String value)
Unhandled exception. System.FormatException: The format of value '<null>' is invalid.
at System.Net.Http.Headers.HttpHeaderParser.ParseValue(String value, Object storeValue, Int32& index)
at System.Net.Http.Headers.HttpHeaders.ParseAndAddValue(HeaderDescriptor descriptor, HeaderStoreItemInfo info, String value)
at System.Net.Http.Headers.HttpHeaders.Add(HeaderDescriptor descriptor, String value)
at System.Net.Http.Headers.HttpHeaders.Add(String name, String value)
20 replies
CC#
Created by JohnP55 on 1/13/2023 in #help
❔ So I'm writing an API for a game in C#, and I need the User-Agent to be an empty string.
yea that's what I did for null
20 replies
CC#
Created by JohnP55 on 1/13/2023 in #help
❔ So I'm writing an API for a game in C#, and I need the User-Agent to be an empty string.
and yea if I try anything else then the format of <null> is also invalid
20 replies
CC#
Created by JohnP55 on 1/13/2023 in #help
❔ So I'm writing an API for a game in C#, and I need the User-Agent to be an empty string.
getting CS0121 because it's ambiguous between the call with HttpHeaders.Add(string, IEnumerable<string?>) and HttpHeaders.Add(string, string?)
20 replies
CC#
Created by JohnP55 on 1/13/2023 in #help
❔ So I'm writing an API for a game in C#, and I need the User-Agent to be an empty string.
it's like it specifically doesn't let you do that
20 replies
CC#
Created by JohnP55 on 1/13/2023 in #help
❔ So I'm writing an API for a game in C#, and I need the User-Agent to be an empty string.
It doesn't:
Unhandled exception. System.FormatException: The format of value '' is invalid.
at System.Net.Http.Headers.HttpHeaderParser.ParseValue(String value, Object storeValue, Int32& index)
at System.Net.Http.Headers.HttpHeaders.ParseAndAddValue(HeaderDescriptor descriptor, HeaderStoreItemInfo info, String value)
at System.Net.Http.Headers.HttpHeaders.Add(HeaderDescriptor descriptor, String value)
at System.Net.Http.Headers.HttpHeaders.Add(String name, String value)
Unhandled exception. System.FormatException: The format of value '' is invalid.
at System.Net.Http.Headers.HttpHeaderParser.ParseValue(String value, Object storeValue, Int32& index)
at System.Net.Http.Headers.HttpHeaders.ParseAndAddValue(HeaderDescriptor descriptor, HeaderStoreItemInfo info, String value)
at System.Net.Http.Headers.HttpHeaders.Add(HeaderDescriptor descriptor, String value)
at System.Net.Http.Headers.HttpHeaders.Add(String name, String value)
20 replies