$header_array = array('Accept: application/json',
                              "Content-Type: application/json; charset=utf-8",
                              'Accept-Charset: utf-8',
                              'Fecha: '.$fecha,
                              'Autorizacion: '.$firma);

you can also try this

    ->setHeader('Pragma', 'public', true)
    ->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0', true)
    ->setHeader('Content-type', 'application/json; charset=utf-8;', true)
    ->setHeader('Content-Length', strlen($content), true)
    ->setHeader('Content-Disposition', 'attachment; filename="' . yourfilename . '"', true)
    ->setHeader('Last-Modified', date('r'), true)
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.