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

HTTP POST

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminhelp
4 Posts 3 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.
  • A Offline
    A Offline
    aman2006
    wrote on last edited by
    #1

    Hi When i send my request using CHttpConnection to the server using the POST method my "+" sign is replaced by blank space. I am sending the header as Content-Type: application/x-www-form-urlencoded\r\n can any body help me in this what type of header i should send so that it won't replace the "+" sign . Thanks shailesh

    M J 2 Replies Last reply
    0
    • A aman2006

      Hi When i send my request using CHttpConnection to the server using the POST method my "+" sign is replaced by blank space. I am sending the header as Content-Type: application/x-www-form-urlencoded\r\n can any body help me in this what type of header i should send so that it won't replace the "+" sign . Thanks shailesh

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      You need to URLEncode the +, because in a URL, + is a synonym for a blank space. You should replace your + with %2B. Stability. What an interesting concept. -- Chris Maunder

      A 1 Reply Last reply
      0
      • M Mike Dimmick

        You need to URLEncode the +, because in a URL, + is a synonym for a blank space. You should replace your + with %2B. Stability. What an interesting concept. -- Chris Maunder

        A Offline
        A Offline
        aman2006
        wrote on last edited by
        #3

        Thanks Mike

        1 Reply Last reply
        0
        • A aman2006

          Hi When i send my request using CHttpConnection to the server using the POST method my "+" sign is replaced by blank space. I am sending the header as Content-Type: application/x-www-form-urlencoded\r\n can any body help me in this what type of header i should send so that it won't replace the "+" sign . Thanks shailesh

          J Offline
          J Offline
          Jeff Bogan
          wrote on last edited by
          #4

          :laugh:

          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