gmantele / vollt

Java libraries implementing the IVOA protocol: ADQL, UWS and TAP
http://cdsportal.u-strasbg.fr/taptuto/
29 stars 28 forks source link

Getting the sync URL #137

Open lmichel opened 2 years ago

lmichel commented 2 years ago

The default WEB interface is based in an HTLM form. There is no way to retrieve the complete UWS query URL. This would be helpful however for instance to replay the query from Curl. My suggestion would be to write out the actual URL somewhere in the page in a way it could be Cut/Paste

gmella commented 2 years ago

Just a comment/hint.. I often use the web developer tool feature provided by most browsers to look at network exchanges and mimic with my own scripts. Some of them may also provide more than the single url so you can query again endpoint with curl. But I have to mention that I must remove the target="blank" attribute from the default form so I can see the network request.

lmichel commented 2 years ago

I noticed that, the TAP query is not sent in the current tab context, so that you cannot use the developer tools to check the network traffic.

gmella commented 2 years ago

yes as I edited my first message to mention that you have to change the html. The other and much more simple option is to ask for a text output and then you get the full URL in the other tab where you just have to change the FORMAT parameter.

gmantele commented 2 years ago

@lmichel , I think that what you call the default WEB interface is actually the default home page provided by my library. As said, it is a home page. The real resources are queried by this home page and can perfectly be queried by curl (or so). From the home page's URL, just append sync or async and you'll get what you want ;)

Or did I misunderstand?