[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTTPAPI feature request - add Accept header



Daniel,

You can add the accept: header yourself by coding an http_xproc() that sets a procedure with the HTTP_POINT_ADDL_HEADER exit point. That procedure can add an "additional header" containing the Accept: header.

The default for the "Accept:" header if not present is to allow all data types -- so this is an unusual request. People don't normally need to set this. But, you can do so using the technique described above if you wish.

-SK



On 10/10/2016 10:18 AM, Petat, Daniel wrote:
    Hello,


    I've got a feature request for HTTPAPI.

    Right now, it is possible to set a "Content-Type" for POST requests.
    Could you please add a possibility to set the "Accept" header as well,
    to tell the server the desired format for GET requests?


    See [1]https://en.wikipedia.org/wiki/List_of_HTTP_header_fields


    Thank you,

    Daniel Petat

References

    1. https://en.wikipedia.org/wiki/List_of_HTTP_header_fields



-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------