June 6th, 2004

Illuminati

Programming fun

This week's project was to get started on a program that would let me retrieve friends group information from the LJ servers and display it in the way that I want to (wait and see).

Having not doen any stuff with winsock in a couple of years (and nothing intensive then) and never having dealt with HTTP in the slightest, this was a bit of a challenge.  However I've now got it posting the following (only with my password/username) and getting back a positive response. 

POST /interface/flat HTTP/1.0
Host: www.livejournal.com
Content-type: application/x-www-form-urlencoded
Content-length: 34

mode=login&user=test&password=test

Would have taken me far, far less time, only I started off trying to use Microsoft's Internet control, which theoretically would make things much simpler, unless of course you wanted to do things different to how Microsoft wanted you to.....

Now I've got stage 1 working I want to switch across to using encrypted passwords and then the XML interface.  And _then_ wrap it all up in a nice DLL that I can give away to anyone that wants to do their own front end.