?

Log in

No account? Create an account
April 11th, 2002 - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

April 11th, 2002

Problems with client development [Apr. 11th, 2002|09:06 pm]
LiveJournal Client Discussions

lj_clients

[phil99]
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
link13 comments|post comment

navigation
[ viewing | April 11th, 2002 ]
[ go | Previous Day|Next Day ]