Problem with long url

Hi!

Testing EG21-G modem with command AT+QHTTPURL=? it replies:
+QHTTPURL: (1-2048),(1-65535)
OK

Based on that I understand that maximum url length is 2048. I am trying to get file with 1702 bytes long url and I get:

+QHTTPGET: 0,400,0
which means bad request

With shorter url (length <100) this worked fine and result was
+QHTTPGET 0,200,{filesize}

If I try that long url from standard browser, it downloads the file, so there is nothing wrong with url itself. Is 1702 really technically supported url length? Are there some special characters that should be avoided in forming url?

It seems 1440 size url goes nicely thru but 1800 size url gets stuck. I am not sure if this problem is in QCOM_V1.6 or EG21-G

Hi @aapee
2048 is the supported input length of the directive, http protocol does not have a limit on url length, but the server or browser will have a limit on url length. You can try different AT tools to eliminate tool limitations.

I can now verify, that communicating directly with EG21-G does not have this described problem, it is behavior of QCOM_V1.6 only.