This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
type: 'POST', // Use POST with X-HTTP-Method-Override or a straight PUT if appropriate. | |
dataType: 'json', // Set datatype - affects Accept header | |
url: "http://example.com/people/1", // A valid URL | |
headers: {"X-HTTP-Method-Override": "PUT"}, // X-HTTP-Method-Override set to PUT. | |
data: '{"name": "Dave"}' // Some data e.g. Valid JSON as a string | |
}); | |
/* Some clients do not support PUT or it’s difficult to send in a PUT request. For these cases, you could POST the request with a request header of X-HTTP-Method-Override set to PUT. What this tells the server is that the intended request is a PUT. Obviously this relies on the API you are accessing making use of the X-HTTP-Method-Override Header.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is with git v1.9.4, make sure to put "C:\Program Files\Perforce" in path | |
git config --global merge.tool p4merge | |
git config --global diff.tool p4merge | |
git config --global --add difftool.prompt false | |
git config --global --add mergetool.prompt false |