> Le 7 juin 2017 à 02:48, Johan Kuuse <jo...@kuu.se> a écrit :
>
>> On Tue, Jun 6, 2017 at 6:15 PM, Richard Hipp <d...@sqlite.org> wrote:
>>> On 6/6/17, Johan Kuuse <jo...@kuu.se> wrote:
>>> Hi,
>>>
>>> Is there any way to access the Fossil built-in webpages using the "fossil
>>> http"?
>>> In the example below, I try to access the /setup page from localhost,
>>> but it seems I don't get authorized. Instead I get redirected to the
>>> /login page.
>>
>> You have to log in as a user with "s" (superuser) permission in order
>> to access the /setup page. If you try to access /setup without the
>> right permissions, you get redirected.
>>
>> Log in first, then try again.
>
> Maybe I did not make myself very clear.
> I am running "fossil http" from the command line.
> Is there a way to first "login" from the command line, and then access
> built-in pages such as "/setup", also from the command line?
>
> My idea is to make a script which parses the output from all builtin pages.
>
I'm not sure to understand what you want to do but you probably want to use:
"fossil test-http" instead.
https://www.fossil-scm.org/index.html/help?cmd=test-http
--
Martin G.
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users