Parameter size limit in bytes when passing a parameter from PHP

(2 posts) (2 voices)
  1. shem, Member

    My PHP code generates a myDBR report by echoing a URL to mydbr.
    The URL contains parameters using the format

     $hostname . '/mydbr/report.php?r=' . $report_procedure_name . '&h=' . $reportHash . '&p1=' . $p1 . '&p2=' . $reportSql . '&u3=' . $reportName;

    It seems that when one of the parameters, in my case $reportSql, is very large, then the report fails.
    Can you please tell me what is the size limit in bytes for such a parameter?
    Thanks.

  2. myDBR Team, Key Master

    The max length of the URL depends on the browser and the server/server config that you are using. Usually the safe limit is around 2k.

    If the request fails for you, you may want to use POST instead of GET. myDBR is able to handle the POST as well.

    --
    myDBR Team


Reply

You must log in to post.