Custom HTTP headers?
cherub
SERnuke.com
I'm doing some stuff with post data, and need to include a custom http header along with the request, specifically 'X-AjaxPro-Method: ServerSideSaveTopic'. Is there any way I can manually set this in the engine script? The closest I could find in the docu was 'form request with=' but that only affects the X-Requested-With header.
Comments
add http header=X-AjaxPro-Method=ServerSideSaveTopic
to pair with post data= would be awesome!
The headers get sent as part of the ajax request when submitting json data. Took me a while to work out that the custom header was required!
modify url=/mysubmiturl.php
post data={"somejson":data,"goes":"here","myarticle":"%article%"}
encode post data=0
just download=1
It might be useful for it to show what headers are sent with each request in the debug window too.
Yes it should send that. However I couldn't test it as I had no engine using it.
Yes I might have to change this thing later on if n´more custom header are set by script. In that case I will add debug data.