Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

PHP set header location without outputting HTML

$
0
0

I am creating a RESTful API in PHP, and have encountered a problem with the location header.

I want to return 201 Created, with some XML data, and a Location header.
When I set the location header in PHP, IIS automatically changes content-type to text/html, and adds a little text on top of my XML.

Related question, with code that produces the problem:
http://stackoverflow.com/questions/12074730/php-set-header-location-without-outputting-html/12074890
(I am the poster)

I am runnning PHP in FastCGI on IIS 7.5 on Windows 7 Proffesional.

Any solutions?


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>