I've decided that a redesign was in order already. The code I had for dealing with the web was messy and fairly unruly, hard to keep up with. This is what I have spent all evening doing. My life is so exciting! Well, actually, I was excited when I managed to get it all working *smiles* Success feels so good! The best way to go forward that I found, was with a combination of Perl modules:
- LWP::UserAgent
- HTTP::Headers - creates HTTP headers in the appropriate format
- HTTP::Request - creates the entire HTTP request, headers and content
- HTTP::Response - stores the response
- URI::Escape - escapes the special characters within the URL
Before I was using the socket module and generating the HTTP requests myself. It wasn't exactly hard, but the code was a bit weird and wonderful! lol - anyhow. Now that I have the basics working again I need to start work (again) on the user interface. The fun bit. Actually, it's the one bit I wish I could miss out entirely...