GET URL call and & (ampersand)

A user asked: One quick question.

I was using a long url for the pdf: https://4148197.app.netsuite.com/core/media/media.nl?id=2343779&c=4148197&h=7adb21f2b000fdabd68a&_xt=.pdf

And if I use this on the &url parameter, it is returning an error (c is not a valid parameter), I gues it is getting the first parameter on the link I provided above.

When I shorten the url, it works, but if not, it doesn’t.

Is there any way to make this work without shortening the url?

I assume this is about GET ocr api calls, not POST.

In a GET call, & (ampersand) is used by the OCR API to delimit the different parameter of the call. It is a so called reserved character. And now the problem is that your image URL also contains and needs & parameters!

Solutions: