Submit form return 302 always

Hello,

I try to to submit data to Mautic Form from external service. For test purpouse I create form with simple data and submit it from CURL. But server always return 302 code with redirect to “/form/message”.

I try

Code:
`curl -X POST "https:///form/submit?formId=5"`
or
Code:
`curl -X POST -F 'mauticform[mail]=test@test.cs' "https:///form/submit?formId=5"`
but every response was:
Code:
`
    <title>Redirecting to /form/message</title>
</head>
<body>
    Redirecting to <a href="/form/message">/form/message</a>.
</body>
%`

I use data (names, action) from preview form, is there any http header or something ? Have anybody same trouble?
Thank you for your help

Hello,
I try to to submit data to Mautic Form from external service. For test purpouse I create form with simple data and submit it from CURL. But server always return 302 code with redirect to “/form/message”.
I try

`curl -X POST "https://<mymauticuri>/form/submit?formId=5"`

or

`curl -X POST -F 'mauticform[mail]=test@test.cs' "https://<mymauticuri >/form/submit?formId=5"` 

but every response was:

[code]`

    <title>Redirecting to /form/message</title>
</head>
<body>
    Redirecting to <a href="/form/message">/form/message</a>.
</body>
%`[/code]

I use data (names, action) from preview form, is there any http header or something ? Have anybody same trouble?
Thank you for your help

Same here!

Have you found a solution, Lukas?

I got the same issue testing the rails gem that you’ve built: https://github.com/luk4s/mautic-rails/blob/master/lib/mautic/form_helper.rb