Announcement

Collapse
No announcement yet.

MvCall POST vs RAW

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    MvCall POST vs RAW

    What is the difference?

    In a HTTP REST app I have a spec which wants a POST, but only RAW works. Why would that be?

    Thanks,

    Scott
    Need to offer Shipping Insurance?
    Interactive Design Solutions https://www.myids.net
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    Competitive Rates, Custom Modules and Integrations, Store Integration
    AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
    My T-shirt Collection is mostly MivaCon T-shirts!!

    #2
    I think - but don't quote me - POST is expected in name / value pairs, but RAW can be anything.
    William Gilligan - Orange Marmalade, Inc.
    www.OrangeMarmaladeinc.com

    Comment


      #3
      I noticed the same thing when posting to a REST interface. I seem to remember being advised to do that by someone at Miva, and it worked.

      Edit: I looked at Mivascript.com and found:
      • FIELDS: Optional, comma delimited list of variables value pairs sent to the URL when POST is used as the method.
      I think the POST form needs to follow very specific guidelines. In my case, I was passing JSON and that doesn't fit into the comma-delimited var/value pair style. Basically what Bill said...
      Last edited by Gordon - Phosphor Media; 05-22-17, 05:25 PM.
      Gordon Currie
      Phosphor Media - "Your Success is our Business"

      Improve Your Customer Service | Get MORE Customers | Edit Any Document Easily | Free Modules | Follow Us on Facebook
      phosphormedia.com

      Comment


        #4
        IIRC, METHOD="POST" causes the VM to format the data into name=value pairs, like URL parameters. For METHOD="RAW" the VM just takes the values of the FIELDS, and puts them into the data without any names, equal signs, or ampersands.

        HTH --
        Kent Multer
        Magic Metal Productions
        http://TheMagicM.com
        * Web developer/designer
        * E-commerce and Miva
        * Author, The Official Miva Web Scripting Book -- available on-line:
        http://www.amazon.com/exec/obidos/IS...icmetalproducA

        Comment


          #5
          Thanks All.

          I'd love to hear from Burch on this.
          Need to offer Shipping Insurance?
          Interactive Design Solutions https://www.myids.net
          MivaMerchant Business Partner | Certified MivaMerchant Web Developer
          Competitive Rates, Custom Modules and Integrations, Store Integration
          AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
          My T-shirt Collection is mostly MivaCon T-shirts!!

          Comment


            #6
            Burch confirmed Kent's answer is correct.
            Thanks,

            Rick Wilson
            CEO
            Miva, Inc.
            [email protected]
            https://www.miva.com

            Comment


              #7
              Thanks Rick.
              Need to offer Shipping Insurance?
              Interactive Design Solutions https://www.myids.net
              MivaMerchant Business Partner | Certified MivaMerchant Web Developer
              Competitive Rates, Custom Modules and Integrations, Store Integration
              AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
              My T-shirt Collection is mostly MivaCon T-shirts!!

              Comment

              Working...
              X