0

i'm trying to submit a form automatically to a completely different website that's owned by a third party, the goal is trying to help my company users to get information without making them do anything other then clicking a link.

i have tried a few ways that i searched from google

  1. cross domain posting source
    in my case i tried making the form a similar with the destination form and had no luck

  2. using curl source
    i tried this and it does not fill any form for me, i saved the curl response to an html file and open it in Firefox ( i don't know anyway else to test it )

  3. i tried using URL params
    i don't know why it does not work but my theory is its filtered for security reasons

the current stack of the app that i'm currently working on is using nextjs

Husin
  • 7
  • 3

1 Answers1

-1

I've finally solved it.

Number 1 is the solution, but make sure the destination for the POST has the same names for the fields. I don't know why, but some of the destination websites has different names in the browser and in actual forms that are processed.

ZygD
  • 22,092
  • 39
  • 79
  • 102
Husin
  • 7
  • 3