Modified HTTPD

Started by grable, June 17, 2005, 09:42:56 AM

Previous topic - Next topic

HPW

#15
Hi grable,



Just tried your HTTP download link.



It open the Save_as dialog and show the file-download window.

But there it hangs and get no progress.



When I enter only:



http://grable.cjb.net/">http://grable.cjb.net/



then I get the:



Index - test page for grb_httpd.lsp HTTP server



But there the 'Download Source' link also does not work.



Is this a newLISP-server? Seems to have problems.
Hans-Peter

grable

#16
Yes, its on the the modified newlisp server.



Wierd, because i have no trouble downloading myself. I even tested a 50 mb file while constantly refreshing the index page, without any problems.



Seems a few ppl have trouble acessing my ftp too :(



What browser are you using? what os??

Myself am on Windows XP and using the latest FireFox..
grable

HPW

#17
Windows XP pro german IE 6.0.2600



It does get the response normal when using:



http://grable.cjb.net/">http://grable.cjb.net/



But clicking on the download link it takes very long to get any more.



?
Hans-Peter

grable

#18
hmmm.. it must be IE ;)  the ppl having trouble with the ftp use IE to .. hehe



have you tried with newLISP's (get-url) ? that should bypass any problems in the browser.
(write-file "c:grb_httpd.rar" (get-url "http://grable.cjb.net/grb_httpd.rar"))
or better yet, switch to firefox perhaps? ;)



or i could just email them to you..



it must be IE's handling of the "application/octet-stream" mime-type or something.. for its the same process in sending a webpage as in sending a file.. its only the Content-Type (mimetype) thats different in the header.



im sorry, but theres not much i can do :(



UPDATE:

  i tested in IE myself now, and the index page was slow as hell, and the download didnt work either :(  so theres defnetly something IE does or doesnt do that firefox and (get-url) does .. il have look into it later.
grable

HPW

#19
I get it with:

(write-file "c:grb_httpd.rar" (get-url "http://grable.cjb.net/grb_httpd.rar"))

But it was stored in "c:programmenewlispgrb_httpd.rar"



My IE has no problems with all download from newLISP.org or other sites.

So a newLISP server should be able to work with IE because a majority still use it (Mozilla might be better, but we can not change everyone's browser installation)
Hans-Peter

grable

#20
Yeah. i forgot the extra  for paths ;)



although it ended up in C: on my pc.. lol



yes yes.. i know it has to work in IE as well ;)..

 but for now itl have to be NON-IE only.. cuz i have no clue as to why IE is slow and refuses to work.



i havent changed that much ;) hehehe
grable

grable

#21
LOL



I forgot to close the socket when done sending data ;) stupid me!



its wierd that this worked on firefox at all! it should atleast have waited for the timeout..



even though i think newLISP/exe's closes open sockets on exit.



but now it works atleast ;) so all you happy IE users can use this shit to.
grable

grable

#22
I just changed the newLISP WIKI to work with the format i use in the modified httpd, wasnt that much to change. so far so good ;)



I just have to test all the functionality in newLISP wiki before i post it.



And i fixed some stuff in the server aswell.



newest version is here:

http://grable.cjb.net/grb_httpd.rar">//http://grable.cjb.net/grb_httpd.rar
grable

HPW

#23
A (happy) IE user say: Thanks



;-)



Of cource: No shit here!
Hans-Peter

grable

#24
QuoteA (happy) IE user say: Thanks


glad to help.. it was stupid of me not to see it earlier ;)



UPDATE:

  yes i know theres alot of them.. atleast you get the latest no?



the modified wiki for grb_httpd works, and its much faster this way than running on the old httpd.



just replace the files in this rar with the ones you got. TAKE BACKUP!!



http://grable.cjb.net/moded_wiki.rar">//http://grable.cjb.net/moded_wiki.rar



or you can test it here:



http://grable.cjb.net:8080">//http://grable.cjb.net:8080
grable

grable

#25
Made the cgi processor take lisp code spaned over multiple statements..



eg:
<% (for (x 0 5 1) %>
<b><%= x %></b><br>
<% ) %>


more like real server pages does it ;)

now, its a little bit slower this way i imagine, since it converts that to several (print) statements and then evals it.



I havent tested it fully, but it works on my small test samples..



anyhow, im updating the downloads with the new code so you can try it for yourself =)



ftp://anonymous@grable.cjb.net/grb_httpd.rar">//ftp://anonymous@grable.cjb.net/grb_httpd.rar

http://grable.cjb.net/grb_httpd.rar">//http://grable.cjb.net/grb_httpd.rar <-- may not be up 24/7



UPDATE:

  allso the wiki needed a minor adjustment.. you can grab it http://grable.cjb.net/moded_wiki.rar">here

or fix it yourself, its just to add 1 line of code



just go to the bottom of the file "index.cgi" and change the code to this
;; take parameter as page name and display it
(set 'link QUERY_STRING)
(if (or (= link "") (not link))
  (display-page "Home")
  (display-page link)
)
(throw) # <--- this line
grable

grable

#26
I setup a small page for future projects and the HTTPD, to stop bothering this forum with my minor updates ;)



http://grable.cjb.net">//http://grable.cjb.net



and downloads have been updated to

http://grable.cjb.net/downloads/grb_httpd.rar">//http://grable.cjb.net/downloads/grb_httpd.rar

http://grable.cjb.net/downloads/moded_wiki.rar">//http://grable.cjb.net/downloads/moded_wiki.rar
grable

HPW

#27
Quote from: "grable"
http://grable.cjb.net">//http://grable.cjb.net


From my IE I get no response on this link.

Loading endless.


Quote from: "grable"
http://grable.cjb.net/downloads/grb_httpd.rar">//http://grable.cjb.net/downloads/grb_httpd.rar

http://grable.cjb.net/downloads/moded_wiki.rar">//http://grable.cjb.net/downloads/moded_wiki.rar


The download links works fine!
Hans-Peter

grable

#28
Damit, i allways forget to check with IE ;)



Thanks again for letting me know =)



il look into it. heheheh



UPDATE:

   Seems there is some issues with the wiki and the asp syntax,

   but I think ive fixed it now though.
grable

HPW

#29
Everything runs fine now!

;-)
Hans-Peter