Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. HTTP Post Question

HTTP Post Question

Scheduled Pinned Locked Moved C / C++ / MFC
questioncomjsonhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cabadam
    wrote on last edited by
    #1

    OK... I basically understand how the 'get' portion of a HTTP connection works... but now I have another question. I am writing a program that will automaticalliy go through various CGI pages, entering the necessary input and parsing the output. I should be able to handle the parsing, but my question lies in how exactly to 'post' the variables from a form to the CGI page. EX: The first page has a form that posts a text field named 'Account' and a password field named 'Password' to "main.cgi". I assume you would get a CHttpFile* that is to the main.cgi and do: http_file->SendRequest But it is here that I am not sure what to fill in... What headers would I need to send? And MSDN says that the lpOptional would usually be the information for a POST operation... but what exactly would I put there? Thanks for any help you can give! Adam cabadam@houston.rr.com

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups