Subject:
|
Re: GUI LUGNET streaming news client in Java (Was: Pseudo-streaming live news (was: Re: Monitor Page))
|
Newsgroups:
|
lugnet.off-topic.geek
|
Date:
|
Sat, 1 Apr 2000 07:13:58 GMT
|
Highlighted:
|
!
(details)
|
Viewed:
|
2535 times
|
| |
 | |
In lugnet.off-topic.geek, Dan Boger writes:
> I was thinking of how we could remotely vote... perhaps if there was a cgi
> on lugnet that would accept remote votes, authunticating with the same code
> that's on the cookie... then to vote, the newsreader will have to send
> something like "GET
> http://www.lugnet.com/news/vote/?lugnet.off-topic.geek:1434&vote=100
> &ID=<cookieinfohere>"
> and it'll vote for you...
>
> that make sense?
Nope, that would put sensitive data into the httpd logs!
Gonna hafta pass your cookie the regular way, not part of GET.
In addition to your cookie, here's what you wanna send via HTTP POST to
/news/rate.cgi, basically:
RATE~newsgroup1:artnum1=rating1
RATE~newsgroup2:artnum1=rating2
RATE~newsgroup3:artnum1=rating3
etc.
For example:
RATE~lugnet.off-topic.geek:1434=100
etc.
Also, please set the referring page (HTTP_REFERER) to the empty string so
that your HTTP request results in a very tiny confirmation page rather than
a normal article-view page.
It also might be a good idea to spool up your outgoing ratings and only
dispatch them to rate.cgi after collecting a few (say, 5 or 10) data points
or after 2-3 minutes have passed, whichever happens first. (You'll want
the part that calls rate.cgi to be on a separate thread anyway so that your
main UI thread stays responsive.)
What keys are you guys using for making ratings? It might be kinda neat to
be able to hit the number keys "1" through "9" for 10 through 90, and "0"
and ")" for 0 and 100...and have it advance to the next article on that
single keystroke...?
--Todd
|
|
Message has 2 Replies:
Message is in Reply To:
66 Messages in This Thread:         
                 
               
                 
             
               
               
                     
                    
                          
                     
                  
                  
              
             
             
              
                   
         
            
           
       
      
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|