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
1 answer

How to Disable HTTP Method (OPTIONS, HEAD, ...) In GlassFish 3.1 Server

I am looking to disable the HTTP Methods that are not in use like OPTIONS, HEAD in a GlassFish 3.1 Server. Thank you. Update: Currently, I have implemented a filter that checks for the HTTP method of the request, and reject the non supported ones.…
balayyoub
  • 13
  • 6
0
votes
2 answers

calling a web service with httpMethod (POST) in swift 4.1

Let me describe view controller (page design) first. I have added one button and one label. And a function is created by me for the button. Here is the ViewController.swift file: import UIKit class ViewController: UIViewController { @IBOutlet…
mannyCalavera
  • 593
  • 1
  • 4
  • 23
0
votes
1 answer

common code to handle http method like get, put, post, delete

With angularjs or angular-1, I used to have common code (not exactly) to handle http methods like GET, PUT, POST, DELETE, // can be called with GET, PUT, POST, DELETE sharedService.process(method, url, data, headers).then(function(result){ …
micronyks
  • 54,797
  • 15
  • 112
  • 146
0
votes
2 answers

How to disable HEAD Method in .htaccess

How to disable HEAD Method using .htaccess ? I'm looking for a solution such that the GET/POST and other such donot get affected by this .htaccess command. I've already disabled Trace using httpd config and have gone through various answers on…
Nalin Raturi
  • 1
  • 1
  • 5
0
votes
1 answer

https not accept http_method DELETE

my server return 405, Method Not Allowed when request to https with http_method DELETE, but request to http is ok. Can anyone please help ? Server Environment Apache 2.4.29 DirectAdmin 1.52.1 OS: centOS release 6.9 (Final) Thanks Add Error log [Wed…
Singha
  • 62
  • 8
0
votes
0 answers

Apache 2.4 method not allowed

How can i enable DELETE method on Apache2.4 debian(jessie)? I have tried several solutions, like enable mod_allowmethods, but nothing seems to works. Thank you
0
votes
0 answers

http header request with random parameter

I have received many http header request with random parameter in my web server like : HEAD /?723 HTTP/1.1 \host: sample \accept-encoding: gzip, deflate \content-length: 0 \Connection: close Does any one know if they are valid or not? i want to know…
Sepideh_j
  • 1
  • 1
0
votes
3 answers

Which HTTP Method to Choose When Building Restful API

I am new to node.js and have my first node.js Restful API built in hapi.js framework. All the services do is basically doing database query. An example of the services is like this: let myservice = { method: "POST", path: "/updateRule", …
zhangjinzhou
  • 2,461
  • 5
  • 21
  • 46
0
votes
2 answers

Can't send POST request to my basic FLASK Python application

I am trying to test the basic HTTP requests in my simple rest api using Flask framework in Python. The GET method worked just fine not the POST method yet. here is the route: @app.route('/lang', methods=['POST']) def addOne(): language = {'name'…
Hussein
  • 653
  • 3
  • 10
  • 28
0
votes
1 answer

Should I allow query parameters and seperate data if not needed?

I am having some thoughts of how to design my server in node js. I had some thoughts about allowing or not the client to send data to the server using query parameters my.site.com?data=some data by the client or via the body when using the POST…
prieston
  • 1,426
  • 2
  • 18
  • 39
0
votes
2 answers

Angularjs $http get method for JSONP data without CALLBACK parameter

I have problem by printing in the table, some JSON that is on the server. This is my JSON process([ { "name": "A", "value": "41" }, { "name": "B", "value": "71" }, { "name": "C", "value": "20" }],"2017.07.11 15:48:33"); My…
mrkibzk
  • 227
  • 4
  • 17
0
votes
0 answers

send file in chat objective -c

I have a chat App in objective-c, that for now just sends message, certainly the server support to upload the file and send file in chat, but I don't know how to implement in my chat the attachment to send. Is there any tutorial in objective-c to…
Steven
  • 762
  • 1
  • 10
  • 27
0
votes
1 answer

HTTP PATCH via POST?

Is there any way to use method PATCH inside either POST or PUT? I'm using a smart mirror repo on my Raspberry Pi, and the only methods it has for custom commands are GET/POST/PUT. And the only method the GPIO-Server has is PATCH I've tried put but…
Casper Round
  • 343
  • 2
  • 14
0
votes
1 answer

How to get the URL parameter in PHP?

http://{{base_url}}/post/857161551776694272 I want to get the post_id(which is bold) in the above URL. Parameter does not contain any param name. (Its a PATCH method which also has a json body)
Vihanga Yasith
  • 328
  • 5
  • 18
0
votes
1 answer

Disabling http methods in Jboss eap 5.x

I need to disable http methods like PUT, DELETE, TRACE, OPTIONS and PROPFIND in my jboss eap 5.x server. Can you please tell me in which file to add the security constraints?