Skip to content

POST request only json string #6

@sergvax

Description

@sergvax

As I understand - POST request only possible with json string -
is it true?

Can you make POST request with any string(example - dataForm)?
Can you give example how to make POST request?

Can you explain this part of swift code -
if (method.rawValue == "POST" || method.rawValue == "PUT"){
request.httpBody = try? JSONSerialization.data(withJSONObject: params, options: [])

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions