RE: Simple Proposal for setting HTTP headers

On 06/08/2013 18:26 , Robin Berjon wrote:
>> You need more than CGI, you actually need NPH.
I am not familiar with NPH, looks it provide more flexibility to operate low level headers, but not as popular as CGI. Could you tell what kind of web test that CGI is not capable to support? AFAWIK, websocket is the only thing I can image.

>> That said, it would be useful if the server we have could itself run dynamic code. Maybe we could use something like http://code.google.com/p/pyv8/ to make it developer-friendly?
Yes, we need a server which provide significant flexibility to extend, especially on low level header. Actually, I have used a lightweight http server lib https://github.com/valenok/mongoose for a while in really web testing, and the feedback from internally is good. On top of the mongoose lib, I added websocket dynamic extension (by c language). Plus mongoose already well supported CGI, so far, I don't see obvious gap. Another good point of this solution is, very lightweight and less dependency, which can run even inside a phone. Thus , it is easy to setup testing environment without resort to real network, especially benefit full automated testing.


Rgds
jwang

Received on Wednesday, 7 August 2013 00:46:19 UTC