April 11th, 2002

  • phil99

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:


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


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,