Hello, I ran into a problem that I haven’t solved yet, and I haven’t met any solutions for xNet. I use xNet library for C # to work with queries.

Here 1 part of the picture

Pay attention to the parameter params = {"network": 30, "page": "1"}

But I do it like this:

Here is part 2 of the picture.

It is clear that you need to encode something, because the same request looks in the URL Decode

Here 3 part of the picture

But the code itself that sends the request

Here 4 part of the picture

How to solve this problem? XNet library enter image description here

    1 answer 1

    Answered by the developer. Parameters set via AddParam are encoded. So that they are not encoded, you need to use:

    public HttpResponse Post(string address, RequestParams reqParams, bool dontEscape=false) 

    dontEscape in this case must be true. Or in Post you can just pass a string.