Re: Needing help with basic HTTP requests..

2013-07-09 Thread AlexMcP
Thank you! It worked, finally, and I can't believe that was the only thing stopping it from working. But yeah, I'll take your advice and make the changes. I've also looked at curl and your implementation, but I wanted to give this a go manually instead of just using external libraries, I feel

Re: Needing help with basic HTTP requests..

2013-07-09 Thread Adam D. Ruppe
BTW I also wrote a more complete lower level implementation too: https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff/blob/master/http.d My code is kinda ugly, but might be useful to refer to too. http has some other features you'll need to think about, like chunk

Re: Needing help with basic HTTP requests..

2013-07-09 Thread Adam D. Ruppe
On Tuesday, 9 July 2013 at 09:03:32 UTC, AlexMcP wrote: writeln("Connection Error ", Socket.ERROR); First tip: Socket.ERROR is a constant, so printing it doesn't help much (as you probably noticed). More helpful is the function lastSocketError(), which returns a strin

Needing help with basic HTTP requests..

2013-07-09 Thread AlexMcP
Hi guys, I've only been trying to learn D for a short while, and compared to the other more popular programming languages, I've been able to find very little helpful and updated documentation or tutorials on it. I basically need help getting data from a website, just the HTML of a webpage,