[C] Connecting to a URL


1 reply to this topic - - - - -

#1 whitebread

    Neowinian Wise One

  • 3,667 posts
  • Joined: 09-April 06
  • Location: Waterloo Region, ON
  • OS: OS X Lion 10.7.4
  • Phone: iPhone 4S

Posted 08 May 2012 - 19:24

I have a Windows console program which collects 4 strings. How hard would it be to either have the program send an email or connect to a URL (either by POST or GET)?


#2 Kami-

    ♫ d(-_-)b ♫

  • 3,625 posts
  • Joined: 28-July 08
  • Location: SandBox

Posted 09 May 2012 - 11:31

Well, you've linked this thread as C, so you'd need a C library for email in order to send email, here is an SMTP option (there are others probably better ones too)
http://libsmtp.berlios.de/

or C++ you'll also need to go locate a valid library.

In C# however (assuming .net) you can use this: http://msdn.microsof...smtpclient.aspx