Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - achoo

#1
Interesting... Is there a string length limit in newLISP of 254 characters?  Requests that are longer than this get truncated when written to the requests.txt file.



I see this in the documentation:


Quotecommand-event takes either a symbol of a user-defined function or a lambda function. The function for 'command-event' must return a string of 254 characters maximum length.


But this sounds like a limit on what comes out of the function, not a limit on the string while the function is operating on it...
#2
Thanks for the help!
#3
Here is my httpd-conf.lsp file. When I visit http://my-machine/__utm.gif?asdf=qwer">http://my-machine/__utm.gif?asdf=qwer the only line in the file called "request" is the GET of favicon...


(command-event (fn (s)
(set 'file "request")
(write-file file s)
))
#4
How can I edit httpd-conf.lsp so that it intercepts requests for image/gif's?



(My plan is to route all google analytics requests for __utm.gif on my test machine to a newLISP instance using the hosts file, and then have the newLISP instance log the requests so I can compare test runs and verify things. If this is a totally misguided concept, feel free to let me know :))