MBS "404" Issue

Discussion created by fmpdude on Oct 17, 2017
Latest reply on Oct 18, 2017 by fmpdude

After my recent issue where FMP 16 did not return a CURL POST Request properly (data format incorrect and data missing), I am testing the MBS plug-in. However, although I appear to be doing all the steps using Christian's very nice documentation, I'm getting a 404 error.


The problem may be how I'm referring to the POST field (as the field name), not sure.


I'm using the helpful getDebugAsText below since the regular get text call didn't return anything.


Can anyone see what I might be doing incorrectly?


Appreciate replies in advance.







MBSCurl Example -- Gives 404 Error Response


Set Variable [ $curl; Value:MBS("Curl.New") ]

Set Variable [ $result; Value:MBS("CURL.SetOptionVerbose"; $curl; 1) ]

Set Variable [ $result; Value:MBS("CURL.setOptionURL"; $curl; "http://localhost:8080/CSVConvert") ]

Set Variable [ $result; Value:MBS("CURL.setOptionHttpHeader"; $curl; "Content-type: text/plain") ]

Set Variable [ $result; Value:MBS("CURL.setOptionPostFields"; $curl; CSVTable::csvfield) ]   ?? Correct ??

Set Variable [ $result; Value:MBS("CURL.SetOptionPost"; $curl; 1) ]

Set Variable [ $result; Value:MBS("CURL.Perform"; $curl) ]

Set Field [ CSVTable::convertedField; MBS("CURL.getDebugAsText"; $curl; "utf-8") ]


Set Variable [ $curl; Value:MBS("CURL.Cleanup") ]