Shop OBEX P1 Docs P2 Docs Learn Events
[New Test] AJAX, LED, IP Cam and Spinneret — Parallax Forums

[New Test] AJAX, LED, IP Cam and Spinneret

Mike GMike G Posts: 2,702
edited 2011-01-08 16:33 in Propeller 1
Please give this a shot. The URLs are in the Spinneret forum.
http://forums.parallax.com/showthread.php?128600-AJAX-Spinneret-LED-Demo-and-IP-Camera


[Old Stuff but still works]
Title: Please stress test my Spinneret Web Server
Here's the URL... click away
http://spinneret.servebeer.com:5000/led.htm

Thanks for the help.
«1

Comments

  • Mike GMike G Posts: 2,702
    edited 2011-01-06 18:49
    Some one was hitting the server with Ubuntu/8.10. Did you have a problem? I logged 2 timeouts.
  • David BetzDavid Betz Posts: 14,516
    edited 2011-01-06 18:50
    I tried everything and it all seems to work except that the log looks like it might be missing newlines at the end of each line. It's just a solid block of text that's hard to read.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-01-06 18:52
    POST isn't working. I get null feedback for the username and passwd values I entered.

    -Phil
  • Mike GMike G Posts: 2,702
    edited 2011-01-06 18:54
    You have to view source to see the newlines. I did not replace /n/r with < br / >.
  • David BetzDavid Betz Posts: 14,516
    edited 2011-01-06 18:55
    POST isn't working. I get null feedback for the username and passwd values I entered.

    -Phil
    It seemed to work for me. It reported back the same thing I entered in those fields. I'm using Safari on a MacBook Pro.
  • Mike GMike G Posts: 2,702
    edited 2011-01-06 18:56
    @Phil Pilgrim, I just tried the post and worked for me. What were the values you entered?
  • David BetzDavid Betz Posts: 14,516
    edited 2011-01-06 18:56
    Looks like you're making great progress! How do you like the Spinneret? I was thinking of ordering one and entering the contest.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-01-06 18:56
    If the log isn't HTML-encoded, you can always send it with a text/plain MIME type, and the newlines will be displayed in the user's browser.

    -Phil
  • Mike GMike G Posts: 2,702
    edited 2011-01-06 19:01
    Thanks Phil, updated... Content-Type: text/plain; charset=utf-8

    Feel kinda' dumb that I didn't do that in the first place.
  • David BetzDavid Betz Posts: 14,516
    edited 2011-01-06 19:03
    Mike G wrote: »
    Thanks Phil, updated... Content-Type: text/plain; charset=utf-8

    Feel kinda' dumb that I didn't do that in the first place.
    The log looks much better now! By the way, if I change anything on the "Configuration" page and then click "save", the values I typed in appear at the bottom of the window but the values in the edit fields revert back to what they were before. Is that intentional?
  • Mike GMike G Posts: 2,702
    edited 2011-01-06 19:05
    @David Betz, If I let you change the values, you would not be able to hit the server anymore.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-01-06 19:07
    Mike G wrote:
    @Phil Pilgrim, I just tried the post and worked for me. What were the values you entered?
    I just tried again with test and 123 -- no luck.

    -Phil
  • Mike GMike G Posts: 2,702
    edited 2011-01-06 19:07
    I don't think I saw one IE header.
  • Mike GMike G Posts: 2,702
    edited 2011-01-06 19:08
    @Phil, what OS and browser?
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-01-06 19:11
    This is me:

    POST /login.shp HTTP/1.1
    User-Agent: Opera/9.80 (Macintosh; PPC Mac OS X; U; en) Presto/2.2.15 Version/10.10
    Host: spinneret.servebeer.com:5000
    Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
    Accept-Language: en,ja;q=0.9,fr;q=0.8,de;q=0.7,es;q=0.6,it;q=0.5,nl;q=0.4,sv;q=0.3,nb;q=0.2,da;q=0.1,fi;q=0.1,pt;q=0.1,ko;q=0.1
    Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
    Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
    Referer: http://spinneret.servebeer.com:5000/login.shp
    Connection: Keep-Alive, TE
    TE: deflate, gzip, chunked, identity, trailers
    Content-Length: 40
    Content-Type: application/x-www-form-urlencoded

    -Phil
  • David BetzDavid Betz Posts: 14,516
    edited 2011-01-06 19:11
    Mike G wrote: »
    @David Betz, If I let you change the values, you would not be able to hit the server anymore.

    Ah, I didn't realize those were the live settings!
  • David BetzDavid Betz Posts: 14,516
    edited 2011-01-06 19:12
    Mike G wrote: »
    I don't think I saw one IE header.

    You should now have at least one IE header! :-)
  • Mike GMike G Posts: 2,702
    edited 2011-01-06 19:18
    @Phil, Thanks a bunch

    Yes I see IE
  • Mike GMike G Posts: 2,702
    edited 2011-01-06 19:20
    Thanks everyone for your help. Time to look through the log.
  • Mike GMike G Posts: 2,702
    edited 2011-01-07 07:37
    @David Betz, I like the spinneret a lot. I especially like the challenge of creating a web server.

    @Phil, if you happen to see this, I think I solved the POST issue. I'm not sure though because I can't reproduce the problem so I just took a stab at it. If you could give POST another shot, I'd appreciate it.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-01-07 08:18
    Just retried. Same as before. Sorry.

    -Phil
  • Mike GMike G Posts: 2,702
    edited 2011-01-07 08:24
    Thanks Phil,

    I see the post. I bet it has something to do with return\line feed? I'll fix it when I get home from work.
    Timeout Alert
    POST /login.shp HTTP/1.1
    User-Agent: Opera/9.80 (Macintosh; PPC Mac OS X; U; en) Presto/2.2.15 Version/10.10
    Host: spinneret.servebeer.com:5000
    Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
    Accept-Language: en,ja;q=0.9,fr;q=0.8,de;q=0.7,es;q=0.6,it;q=0.5,nl;q=0.4,sv;q=0.3,nb;q=0.2,da;q=0.1,fi;q=0.1,pt;q=0.1,ko;q=0.1
    Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
    Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
    Referer: http://spinneret.servebeer.com:5000/login.shp
    Connection: Keep-Alive, TE
    TE: deflate, gzip, chunked, identity, trailers
    Content-Length: 41
    Content-Type: application/x-www-form-urlencoded
    
    
  • BocephusBocephus Posts: 58
    edited 2011-01-07 08:58
    I think I crashed it.
  • Mike GMike G Posts: 2,702
    edited 2011-01-07 10:47
    How did you crash the web server? What OS and browser are you using?
  • Mike GMike G Posts: 2,702
    edited 2011-01-07 13:27
    Congratulations Bocephus, 378 letter "a" exceeded the URL stack.

    You could have at least mentioned that instead of "I think I crashed it."
  • Mike GMike G Posts: 2,702
    edited 2011-01-07 13:46
    @Phil made a change notably look for 0x0A 0x0A for the start of the body as well as 0x0D 0x0A 0x0D 0x0A. I hope that fixes it.

    @Bocephus, increased the URL stack to 512
  • StefanL38StefanL38 Posts: 2,292
    edited 2011-01-07 13:54
    Ok Finally could see something
    homepage OK
    sensordata two lines
    cofiguration panel blinks OK NOK OK NOK
    log shows up some plain text then
    pageload error
    best regards

    Stefan
  • Mike GMike G Posts: 2,702
    edited 2011-01-07 14:09
    Thanks StefanL38. I loaded an updated while there was some action on the server. There were 356 hits in around 10 minutes.
  • Mike GMike G Posts: 2,702
    edited 2011-01-07 14:31
    Congrats Bocephus, another successful crash... well restart. lol

    It's the HTML decode code, I never put that many spaces in the querystring. Back to the drawling board.
  • BocephusBocephus Posts: 58
    edited 2011-01-07 14:31
    Mike G wrote: »
    Congratulations Bocephus, 378 letter "a" exceeded the URL stack.

    You could have at least mentioned that instead of "I think I crashed it."

    I just held the 'a' down for a random amount of time. Sorry Mike G, you are right, I should have been more informative.

    I checked it just now but it doesn't show anything in the browser when I enter a variable. I won't overflow your stack anymore.
Sign In or Register to comment.