Skip to content

Instantly share code, notes, and snippets.

@darkcolonist
Last active August 11, 2020 13:58
Show Gist options
  • Save darkcolonist/adb60994475fb7c864bd488ea79e4881 to your computer and use it in GitHub Desktop.
Save darkcolonist/adb60994475fb7c864bd488ea79e4881 to your computer and use it in GitHub Desktop.
http requester & requester guide & usage for sublime text that works with PHP POST
### HTTP REQUESTER ###
POST http://localhost/test/index.php
Content-type: application/x-www-form-urlencoded
POST_BODY:
k1=v1&k2=v2
POST http://localhost/test/index.php
Content-type: application/json
Host: google.com
Cookie: SOMECOOKIE
POST_BODY:
{"key":"value"}
POST https://jsonplaceholder.typicode.com/posts
Cookie: SOMECOOKIE
Content-type: application/json
POST_BODY:
{"key":"value"}
### REQUESTER ###
post('http://localhost/test/index.php',
headers={"content-type":"application/x-www-form-urlencoded"},
data={
"keyyy-nervate" :"valll-retroactive" ,
"keyyy-polypody" :"valll-ladakin" ,
"keyyy-unremonstrant" :"valll-unmetropolitan" ,
"keyyy-exoticism" :"valll-monarchy" ,
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment