Error using WebConnection

The API program is generating text output not compatible with the GET WebConnection.

Has anyone had a similar experience?

Captura de Pantalla 2024-01-20 a la(s) 10.50.50

Captura de Pantalla 2024-01-20 a la(s) 10.50.33

That error message is pretty self explanatory. What are you looking for from the community?

The reason why my api is not working.

The request URL is not well-formed.

URLField.Text contains something that isn’t valid in a URL.

OK

If I write a call directly from my browser, I see it fine with the correct output.

The code:

http://127.0.0.1:8080/Inventory?Validar=h1U&4s9bd&|Data=1124

Do you see something wrong with the chain that I sent?

Should be:

http://127.0.0.1:8080/Inventory?Validar=h1U&4s9bd&%7CData=1124

Are you using β€œ%” as a separator?

No, %7C is the encoding for a Pipe (|)

1 Like

My problem is that the value β€œh1U&4s9bd&|” is encrypted.

See also EncodeURLComponent but note that this is for each COMPONENT of the url – not the text field in general or it will encode all non-safe characters such as & etc that you need to keep.

1 Like

Everything you use as an url has to be urlencoded.

This Value has to be urlencoded, that results in: h1U%264s9bd%26%7C

I already saw clearly what you want to tell me and the main problem.

I’m going to review the rules to encode url correctly.

Thanks Marius & Douglas !!!