Phil Sumner (phil99) wrote in lj_clients,
Phil Sumner
phil99
lj_clients

Problems with client development

I've been trying to develop a personal LJ Client in perl for a wee while now, and have hit a small problem. Best way to explain it is to demonstrate....

Type "post" to post
Type "check" to Check friends:

check

After CreateMessage()
POST /interface/flat HTTP/1.0
Host: www.livejournal.com
User-Agent: Perl-Phil99/0.01
Content-type: application/x-www-form-urlencoded
Content-length: 47

user=phil99&password=**********&mode=checkfriends

errmsg: Client error: No username sent.
success: FAIL


If I run _exactly_ the same code, but with an ampersand in front of the "user=" section, it works fine. I can't understand why. "user" is _always_ the first value listed in my generated URLs, and as such surely shouldn't need an apersand before it?

Thanks for any help or advice,
Phil
Subscribe
  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 13 comments