Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [content-type]

The Content-Type entity-header field indicates the media type of the entity-body sent to the recipient or, in the case of the HEAD method, the media type that would have been sent had the request been a GET.

content-type
0 votes
1 answer
29 views

WSO2 Carbon: ClassNotFoundException for custom message builder with application/problem+json content type

I'm encountering an issue while configuring custom message builders and formatters in WSO2 Integration Studio (or WSO2 Carbon). I have followed the steps to add a custom message builder (org.wso2....
Emna Sallemi's user avatar
1 vote
2 answers
42 views

Sending data to the Spring Boot backend with FormData and RequestParam not working

So I am struggling for a while with sending files and other data to the backend with FormData in the frontend and RequestParam in the backend. I tried so many different things and I have searched so ...
FrightSabor's user avatar
0 votes
1 answer
35 views

How to protect from browser tab creation delivering a PDF file?

I have a website where, after login, people can download personalized PDF documents. There is a specific problem I found no solution or discussion on StackOverflow yet. First, I deliver the documents ...
Volker's user avatar
  • 468
0 votes
1 answer
29 views

How to override or ignore content-type request header in node.js

I have a node.js server which is being called with a content-type of application/json however the body it sends in is not json but raw text in the form of: client_id=q9r71WPJtK5JWbkq7LAATEhQoXHQCJ9z&...
Tim Lane's user avatar
1 vote
1 answer
34 views

MimeKit/MailKit Question "Not recognized octetstream element in BodyPart of MimeMessage"

I currently have a issue with a MimeMessage from my email server in a C#/DOTNet Winforms Environment. For most other messages, this works, but for this one the attachment is not parsed as an ...
Fabian Saam's user avatar
0 votes
0 answers
109 views

org.springframework.web.HttpMediaTypeNotSupportedException: Content-Type 'application/octet-stream' is not supported

i am trying to post a product with image and i am getting the above issue.enter image description here this is my product entity, enter image description herethis is the controller,enter image ...
ClowdHawk's user avatar
-1 votes
1 answer
31 views

how do I form an http response that includes both html to be rendered by the browser AND binary data to be downloaded?

In response to a POST request, I'd like to send an http response that includes BOTH html to be rendered by the browser AND binary data to be downloaded by the browser. When the browser receives that ...
rocdaddy's user avatar
1 vote
0 answers
69 views

How to handle HTTP Content-Type header for cp932 and UTF-8-sig charsets

I'm trying to create a Python app (using the Pyramid framework) that should generate a CSV file. Let's say code is looking like: import io from pyramid.response import Response def generate_csv(...
rzlvmp's user avatar
  • 8,828
0 votes
1 answer
33 views

Set the Content Type of Blob using Imperative Binding

I'm trying to set the content type of an output blob to 'text/json' using imperative binding. I'm writing some Azure functions that respond to a service bus trigger by writing some data to a blob, and ...
Kenbo's user avatar
  • 111
0 votes
0 answers
31 views

Errors occurred when specifying "Content-Type", "application/json" when using Post request

The error shown in the diagram occurred when I used a POST request on the frontend and specified 'Content-Type': 'application/json'. errors detail1 errors detail2 errors detail3 This is the code I ...
Dony Mcmenamie's user avatar
0 votes
2 answers
93 views

Server Spring boot cannot parse the multipart request

Encountered an error Content-Type There is a form on the front of the part and a file is attached to it I have to accept the request from the front and process it. But when the front sends a request ...
ObserverUA's user avatar
1 vote
1 answer
34 views

Content-Type header does not reach the destination using Apache Camel

When executing the route, the content-type header does not reach the destination. restConfiguration() .host("localhost") .port(8082) from("seda:my-route") .setHeader(...
juanghm's user avatar
  • 11
0 votes
0 answers
39 views

How to ensure the type of a file uploaded to s3 using presigned post and posted as a form data?

I am implementing an endpoint in an API that let's the user create a presigned url to post content into our s3 bucket. I want to add a condition or anything similar to restrict the type of the file ...
Pol Marin's user avatar
0 votes
0 answers
31 views

Snapchat Public API Content-Type header not supported

I am attempting to make a GET request to the following endpoint: GET https://businessapi.snapchat.com/public/v1/public_profiles/{profile_Id}/stats However, I'm encountering difficulties with the ...
Orkhan Farmanli's user avatar
0 votes
0 answers
53 views

ConsumesAttribute when Request.ContentType is null

I'm trying to restring an endpoint to process only certain content type using ConsumesAttribute. The problem is that this attribute does not consider null as a wrong content type. There is a comment ...
Yola's user avatar
  • 18.9k

15 30 50 per page
1
2 3 4 5
158