You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

XML Download

Received Response
11
Views
1
Comments
edited Dec 19, 2018 11:38AM in Integrations and APIs 1 comment

Summary

Download xml file to our local.

Content

Hi All,

i want to fetch the data from OsvC database and form a xml and download the same xml to my local folder.

i was able to create a xml file ,but downloading the same file to my local is not working.

Tried giving below headers for force download:

header('Content-type: text/xml');
header('Pragma: public');
header('Cache-control: private');
header('Content-Type: application/force-download');
header('Content-Disposition: attachment; filename=test.xml');

Not sure why i am not able to download xml file ,but this is what i tried for downloading .xls file which worked fine for me.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!