andrewducker: (Default)
[personal profile] andrewducker
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.
This account has disabled anonymous posting.
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

March 2026

S M T W T F S
1 2 3 4567
891011121314
15161718192021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 5th, 2026 08:12 am
Powered by Dreamwidth Studios