Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2007

    CHTTPFormEncoder changes xml content


    I got problem with sending xml data to server, I try to use http POST, but when I put my XML data to CHTTPFormEncoder it changes from

    <?xml version=\"1.0\" encoding=\"UTF-8\"?>


    So is there anyway to keep data in its orginal shape.

    void CHttpEngine::IssueHTTPPostL(const TDesC8& aPostData, const TDesC8& aUri )
          iPostData->AddFieldL(_L8("data"), aPostData );
    aPostdata is ok and after it goes to iPostData, CHTTPFormEncoder encodes aPostData to url format

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Wiltshire, UK

    Re: CHTTPFormEncoder changes xml content

    This is working correctly. Did you read the documentation in the header file or the specification for encoding form data (http://www.w3.org/MarkUp/html-spec/html-spec_8.html)?

    The data being sent the server is in URL encoded form.

    If you want to send raw data use MHTTPDataSupplier.

  3. #3
    Registered User
    Join Date
    Nov 2007

    Re: CHTTPFormEncoder changes xml content

    jep it was ok, Needed to turn on urlencoded translator on server side. thanks for ur reply.

Similar Threads

  1. Weird Problem with find box Kern-Exec-3
    By sohilr in forum Symbian
    Replies: 7
    Last Post: 2007-12-05, 04:10
  2. KERN-EXEC 3 with CEikEdwin
    By acarrion in forum Symbian User Interface
    Replies: 3
    Last Post: 2007-10-17, 14:43
  3. Replies: 4
    Last Post: 2007-08-10, 02:04
  4. Audio Input Stream on N80
    By tkaihock in forum Symbian Media (Closed)
    Replies: 9
    Last Post: 2006-06-30, 09:15
  5. how to display xml parsed content on emulator
    By alokkumarsingh in forum Symbian
    Replies: 0
    Last Post: 2004-03-27, 08:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts