locked
HttpSendRequest doesn't sent "+" charcaters in post message RRS feed

  • Question

  • Hello,

    I'm trying to send xml file which consist "+" characters.
    I'm using POST message and send the xml file with HttpSendRequest api.
    My server get the xml file without the "+" characters.

    What should I do in oredr to see the "+" characters?
    Wednesday, January 13, 2010 2:12 PM

Answers

  • Hi,

    The code you provided is not quite complete. Maybe you need to use TCHAR instead of char. There is a sample in the following KB article. Please try it and let us know the results.

    How to simulate a Form POST request by using WinInet
    http://support.microsoft.com/kb/165298

    The server side code can also matter, so please post it if the code sample doesn't work for you.

    Regards,
    Chunsheng Tang


    Please mark the post that helps you, and unmark that does not. This benefits our community.
    • Marked as answer by warrentang Monday, January 18, 2010 3:17 AM
    Friday, January 15, 2010 3:45 AM

All replies

  • Here is my following code that I'm using :

    char dbgBuf [100] = {"<?xml version="1.0" encoding="UTF-8" standalone="yes"?><description>I+1</description>"};

    bRes

     

    = HttpSendRequest(hHttpOpenReq, NULL, 0, (LPVOID)dbgBuf, strlen(dbgBuf));

    Wednesday, January 13, 2010 4:02 PM
  • Hi,

    The code you provided is not quite complete. Maybe you need to use TCHAR instead of char. There is a sample in the following KB article. Please try it and let us know the results.

    How to simulate a Form POST request by using WinInet
    http://support.microsoft.com/kb/165298

    The server side code can also matter, so please post it if the code sample doesn't work for you.

    Regards,
    Chunsheng Tang


    Please mark the post that helps you, and unmark that does not. This benefits our community.
    • Marked as answer by warrentang Monday, January 18, 2010 3:17 AM
    Friday, January 15, 2010 3:45 AM