Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-39015

Update the specs with more clarity about JS string encoding for the FORM

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Minor
    • 7.0.0
    • 6.5.0
    • documentation, eventing
    • None
    • 1

    Description

      Build: 6.5.1-6299

      If we pass form param as JS string (Eg. "email: a@b.c") , it will not work as it is treated as a single string. To pass it as named parameter, it must be sent as a JS object.

      Works:

       var request = {
          path : 'form1',
          encoding: "FORM",
          body: {"email": "joe.blogs@gmail.com"},
       };
      

      Won't work:

          var request = {
      	path : 'form1',
      	encoding: "FORM",
      	body: "email=joe.blogs@gmail.com",
          };
      

      Need to make it clearer in spec doc how to use name=value urlencoded POST parameters and plain string POST.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jon.strabala Jon Strabala
            vikas.chaudhary Vikas Chaudhary
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty