Skip to content

Simple GUI - opening a file on a remote server with http parameters produces too many http requests #169

@akveton

Description

@akveton

Given the simple gui for root file browsing (https://jsroot.gsi.de/latest/?), I want to be able to open a generated file using a parametrized http request.

So for example, I have a http request like this, where viewer.html is the simple gui:

http://127.0.0.1:1081/viewer.html?file="http://127.0.0.1:1081/getfile?table=MON_HCAL_NGRBX_PerHERBX&column=mezz_WTE_cnt&prescaler=1&time_start=1514821000&time_end=1539095860&positive_fetch=false"

/getfile is an endpoint which generates a root file given 6 parameters.

This works, but the request is sent 6 times (note: same number of times as the number of parameters). Is this a bug, or is this simply not supported? Is there any way to achieve this in a nice way? I don't want to have to resort to creating my own syntax of http parameter dictionary (note: the whole thing works fine, when it's just one parameter (i.e. no ampersands or quotes - just two question marks)

For example, this parametrized query works (again, viewer is the simple gui):

http://pccodb00/logbook/?p=viewer&file=http://pccodb00/logbook/show_rootfile.php?runnb=286554

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions