(posting to a URL) Pls make it so simple even Jessica Simpson can understand

This is a discussion on (posting to a URL) Pls make it so simple even Jessica Simpson can understand within the C++ Programming forums, part of the General Programming Boards category; Hi guys, I am a seasoned PHP coder but still a C++ newbie, so be easy on the code. As ...

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    1

    (posting to a URL) Pls make it so simple even Jessica Simpson can understand

    Hi guys,

    I am a seasoned PHP coder but still a C++ newbie, so be easy on the code.
    As I have mentioned in the title, try to make it so simple even Jessica Simpson can understand. I was in no way suggesting that Im on the same level as she is intellectually thogh.

    I need a simple sample C++ code to let me post to a URL (web API) and spit back the result at me.
    I am very frustrated that I couldnt find a tutorial/guide to deal with this, maybe Ive been looking in the wrong places?. Surely it cant be that hard.
    Can anybody shed a light or two?
    Thanks in advance.

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Actually, it IS hard. C++ does not have a standardized web access library or even net access library.
    You should look into libraries like WinInet or curl.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    There are a few things here too. http://www.codeproject.com/info/search.asp

  4. #4
    Registered User
    Join Date
    Jul 2006
    Posts
    14
    Yep, I'd highly suggest checking out libcurl. The setup up is a little daunting, but its easy to use once you get the hang of it. Plus, it handles just about any aspect of an HTTP/HTTPS session.

    I might be mistaken, but I think there was mention of a C++ wrapper for libcurl on its site. I've never used it, but you may wanna check that out. might make the learning curve less steep.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple Make Error
    By Aparavoid in forum Tech Board
    Replies: 7
    Last Post: 07-05-2009, 06:39 AM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21