8 Replies Latest reply on Apr 4, 2016 1:08 PM by b6a8310de52b68b540fef05df652fe4a1e35e191

    Server Side Form Post Issues

      I need to be able to submit a form from the server side; client side isn't an option, unfortunately. I tried following the directions here, and am having some issues. The post goes through (returns 200), and new members are captured by the program to which the form belongs, but all of the associated post body information is stripped out. Additionally, when I look at the response content, it looks like the HTML for a marketo form. I'm hoping that it's just because I'm doing something dumb in my post formatting, so heres the python used to send the request.

       

      body={
          "firstName": "Test",
          "lastName": "Person",
          "company": "TestCo",
          "email": "abc@fake.com",
          "munchkinId":"123-ABC-456",
          "formid":1165
        }
      r = requests.post("https://app-mine.marketo.com/index.php/leadCapture/save", data = body)
      

       

      The above returns a 200 status, with an html document as content. Program members are also created, with correct IP information and a 'filled out form' action, but nothing from the post body makes it in.

       

      I've seen several other threads on here related to this topic, none of which have resolution yet. Has anyone successfully used this method?