Questions tagged [http-method]

HTTP methods used to designate the appropriate action to direct a server towards a resource. GET and POST are the most widely known; PATCH and DELETE also fit in that category, among others.

355 questions
0
votes
2 answers

Can angularjs $http be used with LINK method/verb?

I was wondering if $http can send ajax request to the server using the LINK/UNLINK method (like POST, GET, PUT, PATCH..). I already search in the AngularJS documentation and only found this list of available…
lowselfesteemsucks
  • 825
  • 1
  • 13
  • 21
0
votes
2 answers

403 (forbidden) when trying JQuery POST to django view

I have the following attempt at a JQuery POST; $(document).ready(function(){ $("#id_go").click(function(){ GOclick(); }); }); function GOclick(){ selected_table = $("#id_TableName…
Mark Corrigan
  • 544
  • 2
  • 11
  • 29
0
votes
1 answer

Ember.js and PHP API

I am currently having an issue learning the basics of Ember and how it communicates with a backend service. Here is what I'm doing in router.js: Rugby.RugbyRosterRoute = Ember.Route.extend({ model: function(){ return [{ …
jsetting32
  • 1,632
  • 2
  • 20
  • 45
0
votes
3 answers

methods(http verbs) of all endpoints in current flask blueprint

I'm trying to generate the related links for each RESTful API endpoint not just the current request. Another way which would also be acceptable, is that I want to generate all the endpoints of the current blueprint (in this case called…
Marc
  • 4,820
  • 3
  • 38
  • 36
0
votes
0 answers

Why do developers sometimes generate a dynamic form and post it, while ajax post is readily available?

var post = function() { angular.element('body').append('
') angular.element('form[name="myForm"]').append(function(){ var toAppend = ''; angular.forEach([paramkey:…
user2167582
  • 5,986
  • 13
  • 64
  • 121
0
votes
1 answer

How to implement REST class to handle all HTTP methods in a single method

I am using jersey implementation of JAX-RS specification, written specific methods to handle each HTTP request types i.e. POST, GET. PUT and DELETE. But I want to know how we can handle all these requests in a single method. May be its a trivial…
0
votes
1 answer

Wrong http method in ajax request

In my rails app I need to send data from client to server via json request, method: POST. But client sends data with GET method. server: nginx client: $.ajax({ url: "http://myurl", type: "POST", data: mydata, dataType:…
Efremov
  • 127
  • 1
  • 8
0
votes
1 answer

How to request PUT, POST methods on Django rest framework

I've been working with django restframework, I have not managed to make a PUT or a POST to JSON, I could only make a post with the form of the rest django web interface framework As I can make a PUT, POST to be called from an app
user3236034
  • 463
  • 3
  • 6
  • 14
0
votes
1 answer

Create HTTP.PATCH request to firebase from JAVA Spring

Problem is that the Java HTTPUrlConnection does not support HTTP.PATCH. So I found a guide that did an implementation of delete with with a body. But I'm receiving HTTP/1.1 400 Bad Request I arrived at this: * Import…
Anders Metnik
  • 6,096
  • 7
  • 40
  • 79
0
votes
2 answers

Ajax request not receiving xml from Django

I have a Django server which handles requests to a URL which will return some HTML for use in an image gallery. I can navigate to the URL and the browser will display the HTML that is returned, but I can't get that same HTML by doing an AJAX call…
ampersandre
  • 3,156
  • 3
  • 29
  • 37
0
votes
1 answer

Disabled Unnecessary HTTP Methods

I'am doing a web based application and what I did is to disable some of the HTTP methods are not necessary for the website specifically: OPTIONS, HEAD and TRACE. I put this on the httpd.conf of my xampp to test if this works: RewriteEngine…
Vainglory07
  • 5,073
  • 10
  • 43
  • 77
0
votes
2 answers

How to compose a HTTP request with a custom HTTP method type

Is there a tool which enables me to prepare a custom HTTP request. I need to request ressources which are bound to custom HTTP methods on server side. I know about the fire fox plugin RESTClient which is pretty perfect, except that I can't set a…
My-Name-Is
  • 4,814
  • 10
  • 44
  • 84
0
votes
1 answer

include and get information using HTTP methods( GET and POST)

I am using Java, Struts1, tomcat6 I have this scenario, I need to give user LogIn credentials embedded within URl when user hit the URL of application Like when user enters localhost:8080\myApplication I need to embed credentials in URL…
Just_another_developer
  • 5,737
  • 12
  • 50
  • 83
0
votes
1 answer

"jquery.jsonp.js" GET works. What about POST PUT DELETE OPTIONS?

jsonp http methods besides GET (POST, PUT, OPTIONS, DELETE) Using jquery built-in $.ajax method looks like this $(document).ready(function() { $.ajax({ type: "GET", url: "http://myurl.com/webservice&callback=?", ... }); Only want to…
faulkmore
  • 61
  • 2
  • 6
0
votes
1 answer

Is it a preferred way to reuse a url with different http methods?

For example, when making a payment with credit-card we POST to url /paymybill-cc. And we want to avoid reposting when the user refresh the page. In this case, is it a preferred way to redirect to the same url with GET method?
Devs love ZenUML
  • 11,344
  • 8
  • 53
  • 67