Jump to content
  • 0

How to curl. Or simple way, how to PATCH


noblack

Question

Posted

using Special headers, you can do PATCH, DELETE and etc.

but i don't what header to do.

Thanks and this question is optional.

1 answer to this question

Recommended Posts

  • Administrators
Posted

You write the questions so that no one will understand them, which means there will be no answer.

It should have been mentioned that these are HTTP requests, and not something else, because this is not obvious.

The simplest solution:
You request the server via a POST request where the POST or GET parameter is specified, with the desired value. Or just present the desired parameter.
And then, the called script, upon finding this parameter or a special value, initiates the type of request you need.

For example, the following PHP code:

if (isset($_GET['do']) && $_GET['do'] == 'PATCH') {
    // do  PATCH query via curl_* functions.
}

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.