Re: [fossil-users] "fossil http" doubts

2017-06-09 Thread Ross Berteig
On 6/9/2017 1:21 PM, Warren Young wrote: On Jun 9, 2017, at 12:17 PM, Ross Berteig wrote: I do think that the JSON support is close to solid enough to be on by default. For functionality alone, that is surely true, but in the face of malice? Parsers are notoriously

Re: [fossil-users] "fossil http" doubts

2017-06-09 Thread Warren Young
On Jun 9, 2017, at 12:17 PM, Ross Berteig wrote: > > I do think that the JSON support is close to solid enough to be on by default. For functionality alone, that is surely true, but in the face of malice? Parsers are notoriously difficult to make bomb-proof. Even if the

Re: [fossil-users] "fossil http" doubts

2017-06-09 Thread Ross Berteig
On 6/8/2017 9:17 PM, Stephan Beal wrote: On Thu, Jun 8, 2017 at 10:43 PM, Ross Berteig > wrote: For building tools to generally interact with a repo, take a look at the JSON support. It's (still) not compiled in by default, but

Re: [fossil-users] "fossil http" doubts

2017-06-09 Thread Johan Kuuse
> A test case that validates all of the HTML output would be great. That > should be content agnostic, of course, so that it can be maintained without > requiring a lot of work for new versions. IMHO, the W3C HTML Validator https://validator.w3.org/ has always done a good job for validating

Re: [fossil-users] "fossil http" doubts

2017-06-09 Thread Johan Kuuse
> A test case that validates all of the HTML output would be great. That > should be content agnostic, of course, so that it can be maintained without > requiring a lot of work for new versions. IMHO, the W3C HTML Validator https://validator.w3.org/ has always done a good job for validating

Re: [fossil-users] "fossil http" doubts

2017-06-08 Thread Stephan Beal
On Thu, Jun 8, 2017 at 10:43 PM, Ross Berteig wrote: > For building tools to generally interact with a repo, take a look at the > JSON support. It's (still) not compiled in by default, but builds easily if > requested by ./configure --json. Trivia: the reason it's not

Re: [fossil-users] "fossil http" doubts

2017-06-08 Thread Ross Berteig
On 6/7/2017 6:42 AM, Johan Kuuse wrote: Thanks for the input. "fossil test-http" did the trick: webpage=/setup printf "GET $webpage HTTP/1.0\n\n" | fossil test-http My purposes for parsing the built-in web pages are basically two: 1. I want to hack the Fossil code: a. I parse and save

Re: [fossil-users] "fossil http" doubts

2017-06-07 Thread Johan Kuuse
On Wed, Jun 7, 2017 at 3:50 PM, Warren Young wrote: > On Jun 7, 2017, at 7:42 AM, Johan Kuuse wrote: >> >> 2. I want to validate the web pages: Validate the HTML, check for >> broken links, etc, using for example the W3C validation tools. > > If you’re using

Re: [fossil-users] "fossil http" doubts

2017-06-07 Thread Warren Young
On Jun 7, 2017, at 7:42 AM, Johan Kuuse wrote: > > 2. I want to validate the web pages: Validate the HTML, check for > broken links, etc, using for example the W3C validation tools. If you’re using something like curl or wget to pull the web pages, there’s typically a way to set

Re: [fossil-users] "fossil http" doubts

2017-06-07 Thread Johan Kuuse
Thanks for the input. "fossil test-http" did the trick: webpage=/setup printf "GET $webpage HTTP/1.0\n\n" | fossil test-http My purposes for parsing the built-in web pages are basically two: 1. I want to hack the Fossil code: a. I parse and save the HTML from the builtin pages (excluding

Re: [fossil-users] "fossil http" doubts

2017-06-07 Thread Stephan Beal
On Wed, Jun 7, 2017 at 8:48 AM, Johan Kuuse wrote: > My idea is to make a script which parses the output from all builtin pages. > Be aware that fossil makes NO GUARANTEES about the stability of content/structure of any pages (or CLI command output, for that matter). Thus any work

Re: [fossil-users] "fossil http" doubts

2017-06-07 Thread Martin Gagnon
> Le 7 juin 2017 à 02:48, Johan Kuuse a écrit : > >> On Tue, Jun 6, 2017 at 6:15 PM, Richard Hipp wrote: >>> On 6/6/17, Johan Kuuse wrote: >>> Hi, >>> >>> Is there any way to access the Fossil built-in webpages using the "fossil >>> http"? >>> In

Re: [fossil-users] "fossil http" doubts

2017-06-07 Thread Johan Kuuse
On Tue, Jun 6, 2017 at 6:15 PM, Richard Hipp wrote: > On 6/6/17, Johan Kuuse 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

Re: [fossil-users] "fossil http" doubts

2017-06-06 Thread Richard Hipp
On 6/6/17, Johan Kuuse 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.

[fossil-users] "fossil http" doubts

2017-06-06 Thread Johan Kuuse
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. Best Regards, Johan fossil setting | grep localauth