Kein
❔ Skipping null values in .NET XML serializer
I have data class with 113 properties.
I want to skip serializing null value, including Nullable value types like
int
Am I still destined to write all 113 public bool ShouldSerializeMyNullableProp1,2,3,4,5...()
for this in the year of our Lord 2023?2 replies
❔ HTTPclient fails to POST properly
Target website has a very basic login form, and I have no problems logging in via curl:
However, attempt to sent POST with HttpClient always fails:
The response should be
302 Found
and then response header contain redirect to profile location, but I'm not getting it. I do get it with curl tho. So the issue is with Httpclient.
Any idea what cold be the differences between curl and HttpClient that make the former work?39 replies
❔ Pinging hundred of hosts sequentially
I'm getting weird inconsistent results:
I know for a fact that among all the host addresses none of them exceed ping above 300ms and they ALL respond to ICMP yet I'm getting almost half as
TimedOut
. Any idea what gives? This work already offloaded to separate Task so I dont need async version.
If you know more reliable tools to ping dozens of hosts that would work too.4 replies