So, I was a little curious myself, so I did some poking around. In order to retrieve the 'private' information of how many votes a given user has left, you need to be logged in as that user. I was able to recreate the behavior described above using curl, a command line web user agent. All my testing uses the -v flag to generate verbose information.

Before logging in:

$ curl -v "http://perlmonks.org/?node_id=16046&for_user=chargrill" OUTPUT: * About to connect() to perlmonks.org port 80 * Trying 66.39.54.27... * connected * Connected to perlmonks.org (66.39.54.27) port 80 > GET /?node_id=16046&for_user=chargrill HTTP/1.1 User-Agent: curl/7.13.1 (powerpc-apple-darwin8.0) libcurl/7.13.1 OpenS +SL/0.9.7i zlib/1.2.3 Host: perlmonks.org Pragma: no-cache Accept: */* < HTTP/1.1 200 OK < Date: Sat, 25 Nov 2006 22:40:46 GMT < Server: Apache/1.3.29 < Transfer-Encoding: chunked < Content-Type: text/xml; charset=ISO-8859-1 <?xml version="1.0" encoding="ISO-8859-1"?> <XPINFO> <INFO site="http://perlmonks.org/" sitename="PerlMonks" style="" genti +meGMT="2006-11-25 22:40:46" min_poll_seconds="30" foruser="chargrill" + id="474411"> Rendered by the XP XML Ticker</INFO> <XP xp="4051" level="14" leveltitle="Priest" xp2nextlevel="1349" votes +left="-1"> </XP> </XPINFO> * Connection #0 to host perlmonks.org left intact * Closing connection #0

Notice, the "votesleft="-1"". To get a cookie:

$ curl -v -c ./curl.cookie "http://perlmonks.org/?" -d user=chargrill +-d \ passwd=MYPASSWORD -d expires=+10yrs -d login=Login -d op=login (OUTPUT TRIMMED)

Using the cookie to check the ticker:

$ curl -v -b curl.cookie "http://perlmonks.org/?node_id=16046&for_user +=chargrill" OUTPUT: * About to connect() to perlmonks.org port 80 * Trying 66.39.54.27... * connected * Connected to perlmonks.org (66.39.54.27) port 80 > GET /?node_id=16046&for_user=chargrill HTTP/1.1 User-Agent: curl/7.13.1 (powerpc-apple-darwin8.0) libcurl/7.13.1 OpenS +SL/0.9.7i zlib/1.2.3 Host: perlmonks.org Pragma: no-cache Accept: */* Cookie: userpass=HASHED_INFO_REMOVED < HTTP/1.1 200 OK < Date: Sat, 25 Nov 2006 22:44:38 GMT < Server: Apache/1.3.29 < Transfer-Encoding: chunked < Content-Type: text/xml; charset=ISO-8859-1 <?xml version="1.0" encoding="ISO-8859-1"?> <XPINFO> <INFO site="http://perlmonks.org/" sitename="PerlMonks" style="" genti +meGMT="2006-11-25 22:44:38" min_poll_seconds="30" foruser="chargrill" + id="474411"> Rendered by the XP XML Ticker</INFO> <XP xp="4051" level="14" leveltitle="Priest" xp2nextlevel="1349" votes +left="0"> </XP> </XPINFO> * Connection #0 to host perlmonks.org left intact * Closing connection #0

Hope this helps :)



--chargrill
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)

In reply to Re: PM XP OS X Widget by chargrill
in thread PM XP OS X Widget by pemungkah

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.