httphttp-headershttp-accept-header

How to specify that I can accept all media types in the Accept header?


I want to send an HTTP request and I want to specify that I can accept all media types in the Accept header, is the following correct:

Accept: */*

Solution

  • Yes. Take a look at RFC 7231

    The asterisk * character is used to group media types into ranges,
    with */* indicating all media types