Questions tagged [get]

GET is one of many request methods supported by the HTTP protocol. The GET request method is used when the client needs to get data from the server as part of the request-URI.

GET is one of many request methods supported by the HTTP protocol. The GET request method is used when the client needs to get data from the server as part of the request-URI.

See also: ,

17143 questions
3
votes
2 answers

No route matches [GET] "/app1"

Rails.root: /home/chris/rails_projects/app1 I get the message about routes. my routes.rb files show: I do not know how to approach this at all. I am using Ubuntu 12.04 in Virtualbox. Rails.application.routes.draw do # The priority is based upon…
3
votes
1 answer

Keeping url parameters in order when encoding with urllib

I am trying to simulate a get request with python. I have a dictionary of parameters and am using urllib.urlencode to urlencode them I notice that although the dictionary is of the form: { "k1":"v1", "k2":"v2", "k3":"v3", .. } upon urlencoding the…
user1592380
  • 34,265
  • 92
  • 284
  • 515
3
votes
4 answers

Replacing backslash with another symbol in PHP

Been struggling with replacing a backslash by another symbol such as '.-.' just to indicate the position of backslashes as I could not send a string such as 'C\xampp\etc.' through url as GET variable so I thought I'd first replace the backslashes in…
Skyfe
  • 33
  • 1
  • 3
3
votes
2 answers

php: avoiding __get in certain circumstances?

I have a class where I'm using __set. Because I don't want it to set just anything, I have an array of approved variables that it checks before it will actually set a class property. However, on construct, I want the __construct method to set…
user151841
  • 17,377
  • 29
  • 109
  • 171
3
votes
2 answers

Is a system depending on HTTP get/post parameter order reliable?

I am trying to implement a system which depends on the HTTP get/post parameter order. I want the system provide a remote function call mechanism, for example: Suppose there is a function foo(int, int), it can be called remotely by HTTP get…
WKPlus
  • 6,955
  • 2
  • 35
  • 53
3
votes
1 answer

.htaccess 301 redirect without GET var

For a website I'm currently working on we're redirecting our old URL's permanently to new ones like this: Redirect 301 /oldfile.php http://www.site.com/show/newurl Now I come across this situation in which the old url has a get var like: Redirect…
tvgemert
  • 1,436
  • 3
  • 25
  • 50
3
votes
3 answers

Can you call GET and POST same time from web api controller?

I would like to be able to call GET and POST request from the same url (api/test...), but I am currently getting current context error on the following line of code: [AcceptVerbs(HttpVerbs.Get|HttpVerbs.Post)] //The name 'HttpVerbs' does not exist…
user3070072
  • 610
  • 14
  • 37
3
votes
4 answers

GET variables and pretty urls

i think this is a bit of a noob question, but here goes. I am trying to get a better understanding $_GET variables in PHP. A lot of CMS's etc convert things like site.com/?ID=42 into something like site.com/42 My question is, what happens to the…
mroggle
  • 78
  • 2
  • 7
3
votes
1 answer

System.Web.Http.AcceptVerbs("GET") vs System.Web.Http.HttpGet

What exactly is the difference between [System.Web.Http.AcceptVerbs("GET")] public string[] SomeArray(string someString) { and [System.Web.Http.HttpGet] public string[] SomeArray(string someString) { and when would one use…
Alexander
  • 19,906
  • 19
  • 75
  • 162
3
votes
2 answers

jQuery AJAX type: 'GET', passing value problem

I have a jQuery AJAX call with type:'GET' like this: $.ajax({type:'GET',url:'/createUser',data:"userId=12345&userName=test", success:function(data){ alert('successful'); } }); In my console output…
Trez
  • 1,140
  • 5
  • 16
  • 23
3
votes
1 answer

AngularJS - $rootScope.currentUser not being transferred from profile page to settings page

I have a site with Angular/Express/Node/Passport that I am trying to put together. I am setting up angular to watch the $rootScope.currentUser variable, here is some code: app.run(function ($rootScope, $location, Auth) { //watching the value of…
ewizard
  • 2,801
  • 4
  • 52
  • 110
3
votes
2 answers

Is it legal to have multiple HTTP GET parameters with the name?

Is it "legal", according to the HTTP protocol, to make an HTTP GET request that contains multiple parameters with the same name? For example /controller?name=John&name=Patrick&name=Jack I'm sure different clients and servers react differently,…
Nathan H
  • 48,033
  • 60
  • 165
  • 247
3
votes
2 answers

GET request, iOS

I need to do this GET request: http://api.testmy.co.il/api/sync?BID=1049&ClientCode=3847&Discount=2.34&Service=0&Items=[{"Name":"Tax","Price":"2.11","Quantity":"1","SerialID":"1","Remarks":"","Toppings":""}]&Payments=[] In browser I get this…
phnmnn
  • 12,813
  • 11
  • 47
  • 64
3
votes
3 answers

Get data from treeview in tkinter

I'm trying to get data from a Treeview I filled with : self.tree['show'] = 'headings' self.tree['columns'] = ('Pool ID','Time', 'Lat', 'Lon', 'Alt', 'Spd', 'hdop','vdop','pdop', 'Sats Used', 'FixMode') self.tree.column('Pool ID', width=90,…
katze
  • 1,273
  • 3
  • 16
  • 24
3
votes
3 answers

REST creation without persisting

Right now I have a REST service which creates a report via a POST: POST http://myhost/reports The report however is not persisted, and cannot later on be retrieved via a GET: GET http://myhost/reports/{id} Instead I return the report immediately…
per_jansson
  • 2,103
  • 4
  • 29
  • 46