Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

168
Vistas
how to convert the instagram curl post request to javascript request?

I'm trying to change the code i got from Instagram to a token. In Instagram DOCS it is writes with a curl request and i want to use JavaScript. its look like this:

curl -X POST \
  https://api.instagram.com/oauth/access_token \
  -F client_id={app-id} \
  -F client_secret={app-secret} \
  -F grant_type=authorization_code \
  -F redirect_uri={redirect-uri} \
  -F code={code}

I'm trying to understand what is -F and with what symbol to replace it.

Any solution will help, thank you.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

-F is for emulating html form submission https://curl.se/docs/manpage.html#-F

if you want to sent the request using JavaScript fetch() API, set all those parameters as body of request and set the content type to application/x-www-form-urlencoded

if you are sending these requests interactively, alternatively you can create an HTML page with a form and submit button.( e.g. https://www.w3schools.com/tags/att_form_enctype.asp )

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda