Questions tagged [x-http-method-override]

HTTP method override by adding "X-HTTP-Method-Override: {VERB}" HTTP Header to POST requests

Many HTTP clients do not support HTTP PUT and HTTP DELETE verbs. To work around this, HTTP client libraries and clients can add the verb to an HTTP "X-HTTP-Method-Override" header and send this header with an HTTP POST request to achieve the same effect.

22 questions
0
votes
1 answer

REST API problems with PUT/PATCH/DELETE and HTTP headers

I know, that some web-clients can't use PUT/PATCH/DELETE http methods. I heard about clients, which uses Flash, and about simple http forms. Have you had such problems? With which web-frameworks on client side? Should I expect some problems with…
0
votes
3 answers

How to override angular ngSrc directive to append request header?

I want to append a authentication token to the angular js ngSrc url request. So how can I pass this token with ngSrc directive?
0
votes
2 answers

Loading a page with xhttp

I have a little question that I want to ask. First of all, I'm using JS for loading a page. function ReLoad() { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function () { if (xhttp.readyState == 4 && xhttp.status…
Onelio
  • 313
  • 1
  • 4
  • 16
0
votes
2 answers

How to use REST API PATCH command with Google Apps Script UrlFetchApp

I am trying to PATCH (partially update) Firebase records (firebase.com). This works perfect outside of Google Apps Script using PATCH. GAS is not supporting PATCH and I tried X-HTTP-Method-Override without success. Using GAS with…
0
votes
1 answer

XHTTP does not allow Accept header to specify JSON?

I'm hosting a mvc4 REST web api and I have a particular client that is using XHTTP (please don't ask why). However, it turns out that XHTTP is stripping off the "Accept" header and the client is trying to specify the request to come back as json. …
genxgeek
  • 13,109
  • 38
  • 135
  • 217
0
votes
1 answer

Managing X-HTTP-Method-Override with tastypie in Heroku?

I'm trying to use the header: X-HTTP-Method-Override: PATCH (as stated in the Tastypie Docs , just search for X-HTTP-Method-Override there) so that I can simulate a PATCH (Not supported in heroku) when using tastypie in heroku. I'm trying out this…
Goles
  • 11,599
  • 22
  • 79
  • 140
-1
votes
2 answers

MethodOverride PUT not working

I am using Node.js, Express and MethodOverride to try and have a form update only 1 part of a model (my user model). User model: var userSchema = new mongoose.Schema({ email: { type: String, unique: true, lowercase: true }, password: String, …
Kirbytech
  • 634
  • 1
  • 5
  • 18
1
2