Skip to content

Cannot set a request body for HTTP method DELETE #1972

@dinhnguyenbao

Description

@dinhnguyenbao

This is my code:

Response response = Jsoup
                .connect(url)
                .method(org.jsoup.Connection.Method.DELETE)
                .headers(header)
                .requestBody(jsonBody)
                .userAgent("Mozilla")
                .followRedirects(true)
                .ignoreHttpErrors(true)
                .ignoreContentType(true)
                .timeout(TIMEOUT)
                .execute();

Metadata

Metadata

Assignees

Labels

bugA confirmed bug, that we should fixfixedAn {bug|improvement} that has been {fixed|implemented}

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions