string - Delphi - Indy TIdHttp.Get with large URL length -


i'm trying use method indy 10 however, url's length bigger 255 chars. , method accepts "string" parameters.

body := httpcom.get('..........wide string.........') 

delphi's compiler give me error:

"string literals may have @ 255 elements"

is there solution or different third-party component solve this?

that no problem of string type ide, can write e.g.

const    c_url = 'a long text 255 characters ....to contionued ...'           +'more content....to contionued ... '           +'more more content....to contionued ... '           +'enough content'; begin   idhttp1.get(c_url); end; 

or

  idhttp1.get( 'a long text 255 characters ....to contionued ...'           +'more content....to contionued ... '           +'more more content....to contionued ... '           +'enough content'); 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

node.js - Node - Passport Auth - Authed Post Route hangs on form submission -

Does Firefox offer AppleScript support to get URL of windows? -