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

183
Vistas
How to pass encoded Amazon s3 signed URL in python curl Postfields?

I need to pass an amazon s3 signed URL to my python cURL function. The signed url have some special characters as '%' which is passed to the cURL POSTFIELDS and after the processing I am getting 500 Internal Server error. Is there a way to pass the POSTFIELDS in encoded format so cURL can process it?

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

import urllib
import pycurl

def urlconvert:
  wrapper = {'filename':p} # p is the amazon s3 signed url
  c = pycurl.Curl()
  c.setopt(pycurl.URL, url) #url is the url for curl request
  c.setopt(pycurl.POST, 1)
  post_args = urllib.urlencode(wrapper)
  c.setopt(pycurl.POSTFIELDS, post_args)
about 4 years ago · Santiago Trujillo 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