[Olsr-dev] http headers for olsr-plugins

Ferry Huberts (spam-protected)
Thu Dec 8 18:35:34 CET 2016



On 08/12/16 17:39, Ufo wrote:
> hm, ok.
>
> dont hurry, your prefix-idea (/plain and /http) may not help me either.
>
> butsilke müller
> , what do you think about downwards- and upwards compatibillity?? since
> years the answers were WITHOUT headers, so there are existing scripts
> and config-options! (neigh.sh command or luci-stuff)

This is a rather unfair statement since I notified all olsr users and 
stakeholders over a year ago (3 December 2015, see 
https://lists.olsr.org/pipermail/olsr-users/2015-December/006533.html) 
to start testing with the new version of olsr because of breaking changes.

I could just as well argue that you disregarded that and are now trying 
to blame me for your own lack of testing.

Seeing as you had more than a year to fix your side of the problem or to 
engage with me, I'm not really inclined to change things, especially 
those things that are in conflict with well known specifications (like 
having jsoninfo not send headers).

I'm already accommodating you by working on the prefix solution.
That is as far as I'm willing to go for the moment.

> unfortunatly your desired usage of wget instead of nc doenst work, when
> httpheaders are OFF :-(
> (and, when setting "PlParam "httpheaders" "false" on an older system,
> olsr wont start :-(  )
>
>
> and (just for my unterstanding): which operating system are you using
> for olsr? i suppose you dont have a relationship to openwrt or LEDE and
> dont use that. so you dont need to think about neigh.sh-command,
> luci-websites or compiling-problems with mud-plugin. :-/

Be careful of what you assume.

I maintain olsr for everyone.


>
> when do you mark the new version as 0.9.6? because your last quick
> changes on 0.9.5. are on your git, but not at release-file
> (http://www.olsr.org/releases/0.9/).
>

You can build just fine from git on LEDE and OpenWRT.

Once everything has settled, we can do a new release.

>
> why you dont increase the version-number of jsontext plugin?? (maybe als
> textplugin). because the changelog is very big
>

That hasn't been the practice in olsr.

Besides, changing those would have people like you complaining that 
their configs would no longer work, when they have worked since ages.



Ferry

>
>
>
> ufo
>
>
> On 08.12.2016 15:46, Ferry Huberts wrote:
>> I'm working on a patch that allows you to override the setting on a
>> per-request basis.
>>
>> You can then basically use the prefix '/plain' to force no headers, or
>> the prefix '/http' to force headers.
>>
>> I'll notify you when it's ready.
>> Probably tomorrow.
>>
>>
>>
>> On 08/12/16 15:36, Ufo wrote:
>>> Konsole output
>>> Hi,
>>>
>>> im still strungling with that "http headers are a must". (and about
>>> opening so many webservers on different ports)
>>>
>>> do you know, httpheaders are sent by a different way to the client..
>>> using wget there is a "-S" option to see the headers!?
>>>
>>> here an example with json output of olsr-neighbors (via luci)
>>>
>>> mfg ufo
>>>
>>>
>>>
>>>
>>> (spam-protected):~$ wget -S
>>> http://10.61.113.77/cgi-bin/luci/freifunk/olsr/neighbors?status=1 -O -
>>> --2016-12-08 15:20:23--
>>>  http://10.61.113.77/cgi-bin/luci/freifunk/olsr/neighbors?status=1
>>> Verbindungsaufbau zu 10.61.113.77:80... verbunden.
>>> HTTP-Anforderung gesendet, warte auf Antwort...
>>>  HTTP/1.1 200 OK
>>>  Connection: Keep-Alive
>>>  Transfer-Encoding: chunked
>>>  Keep-Alive: timeout=20
>>>  Content-Type: application/json
>>>  Cache-Control: no-cache
>>>  Expires: 0
>>> Länge: nicht spezifiziert [application/json]
>>> In »»STDOUT«« speichern.
>>>
>>> -                                        [<=>
>>>                                                                   ]
>>>       0  --.-KB/s             [
>>> {"noise":-91,"ifn":"wireless0","rip":"10.61.113.33","snr":40,"proto":"4","snr_color":"#00cc00","nlq":"0.862","lip":"10.61.113.77","dfgcolor":"","
>>>
>>> lq":"0.866","color":"#00cc00","signal":-51,"cost":"0.001","hn":"113-33.olsr.leipzig.freifunk.net"},{"noise":-91,"ifn":"wireless0","rip":"10.61.11
>>>
>>> 3.31","snr":47,"proto":"4","snr_color":"#00cc00","nlq":"0.721","lip":"10.61.113.77","dfgcolor":"","lq":"0.960","color":"#00cc00","signal":-44,"co
>>>
>>> st":"0.001","hn":"113-31.olsr.leipzig.freifunk.net"},{"noise":-91,"ifn":"wireless0","rip":"10.61.113.78","snr":14,"proto":"4","snr_color":"#ff660
>>>
>>> 0","nlq":"0.658","lip":"10.61.113.77","dfgcolor":"","lq":"0.497","color":"#00cc00","signal":-77,"cost":"0.003","hn":"113-78.olsr.leipzig.freifunk
>>>
>>> .net"},{"noise":-91,"ifn":"wireless0","rip":"10.61.125.9","snr":12,"proto":"4","snr_color":"#ff6600","nlq":"0.557","lip":"10.61.113.77","dfgcolor
>>>
>>> -                                        [ <=>
>>>                                                                  ]
>>>     992  --.-KB/s   in 0s
>>>
>>> 2016-12-08 15:20:24 (36,0 MB/s) - auf die Standardausgabe geschrieben
>>> [/992]
>>>
>>>
>>> ------------------------------------
>>>
>>> (spam-protected):~$ wget
>>>  http://10.61.113.77/cgi-bin/luci/freifunk/olsr/neighbors?status=1 -O -
>>> --2016-12-08 15:20:28--
>>>  http://10.61.113.77/cgi-bin/luci/freifunk/olsr/neighbors?status=1
>>> Verbindungsaufbau zu 10.61.113.77:80... verbunden.
>>> HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
>>> Länge: nicht spezifiziert [application/json]
>>> In »»STDOUT«« speichern.
>>>
>>> -                                        [<=>
>>>                                                                   ]
>>>       0  --.-KB/s             [
>>> {"noise":-93,"ifn":"wireless0","rip":"10.61.113.33","snr":37,"proto":"4","snr_color":"#00cc00","nlq":"0.878","lip":"10.61.113.77","dfgcolor":"","
>>>
>>> lq":"0.831","color":"#00cc00","signal":-56,"cost":"0.001","hn":"113-33.olsr.leipzig.freifunk.net"},{"noise":-93,"ifn":"wireless0","rip":"10.61.11
>>>
>>> 3.31","snr":47,"proto":"4","snr_color":"#00cc00","nlq":"0.729","lip":"10.61.113.77","dfgcolor":"","lq":"0.960","color":"#00cc00","signal":-46,"co
>>>
>>> st":"0.001","hn":"113-31.olsr.leipzig.freifunk.net"},{"noise":-93,"ifn":"wireless0","rip":"10.61.113.78","snr":11,"proto":"4","snr_color":"#ff660
>>>
>>> 0","nlq":"0.623","lip":"10.61.113.77","dfgcolor":"","lq":"0.438","color":"#00cc00","signal":-82,"cost":"0.004","hn":"113-78.olsr.leipzig.freifunk
>>>
>>> .net"},{"noise":-93,"ifn":"wireless0","rip":"10.61.125.9","snr":13,"proto":"4","snr_color":"#ff6600","nlq":"0.557","lip":"10.61.113.77","dfgcolor
>>>
>>> -                                        [ <=>
>>>                                                                  ]
>>>     992  --.-KB/s   in 0s
>>>
>>>
>>
>

-- 
Ferry Huberts



More information about the Olsr-dev mailing list