Questions tagged [getmethod]

An HTTP protocol request method.

156 questions
3
votes
1 answer

Symfony getMethod() vs getRealMethod()

I know the symfony api explain that getMethod() gets the request "intended" method and getRealMethod() gets the "real" request method but i can't figure out what "intended" and "real" means. Can anyone tell me? Thanks
yoyo
  • 31
  • 3
3
votes
4 answers

Can one assume get-method to be thread-safe if not otherwise noted?

Can one generally assume thread-safety for get-methods if not otherwise noted in the documentation of a method? Or is it the other way round that one should never assume thread-safety if not otherwise noted? What do you think? Edit: Assume a…
Niklas R
  • 16,299
  • 28
  • 108
  • 203
2
votes
2 answers

Form validation not working with form GET method

I'm trying to post my form by method="GET" instead of POST. Codeigniter's form_validation->run() doesn't work. It's not returning any form_error in view page.
mathew
  • 86
  • 7
2
votes
2 answers

Getting The Method That A Method Was Called From?

Is it possible to determine the calling method name "Eat Pizza" in PostError? I guess I could pass "EatPizza" as one of the arguments, but that would require changes each time the method name changes (unnecessary maintenance). But then, I wasn't…
sooprise
  • 22,657
  • 67
  • 188
  • 276
2
votes
1 answer

Generic class, calling generic class with clone

I need to make a generic class with implements cloneable, and to accomplish this I needed to do a clone method of the class and another method to get this method. The teacher passed it in the room, but is not working and giving Method error. What…
lisa15x
  • 23
  • 3
2
votes
2 answers

Determining available operators at runtime

I would like to be able to retrieve the available operators for an object at runtime, possibly in a similar way as the getMethod() call. In particular, I need to be able to call the less-than/greater-than operators of an object at…
Tim Kane
  • 2,599
  • 3
  • 20
  • 19
2
votes
2 answers

Why am I unable use GET to send parameters to WebMethod?

My WebMethod looks like this: [WebMethod] [ScriptMethod(ResponseFormat=ResponseFormat.Json, UseHttpGet=true)] public List HelloWorld(string hello) { List persons = new List { new Person("Sarfaraz",…
Nawaz
  • 353,942
  • 115
  • 666
  • 851
1
vote
3 answers

jQuery AJAX GET html data IE8 not working

This is the code but it's not working on IE8 & 7 (IE9 , chrome,firefox, safari,opera are all ok). I have tried a lot of things (meta utf-8 code, php header code, taking alerts, cache:false).What can i do , i need help. Thanks for your interests. …
1
vote
1 answer

Getting java.net.URISyntaxExceptiin: Illegal character error when we pass space in url for GET method

‘’’ Get url baseurl + ‘/api/Search 1’ When method GET Then print response ‘’’ Throwing error
1
vote
0 answers

How to make JPA query method about onetomany?

I'm stuck at deal with this problem. I have 'Review Entity', and 'Heart Entitiy'. And I tried to show them homepage and detailpage separately! Long countHeartByBookReviewId(Long bookReview_id); i used jpa query method for showing how many heart it…
1
vote
2 answers

What does the ? mean in "format(List"

I'm following the indications on this post to create a a parametrized URI for an Http GetMethod (http://some.domain/path?param1=value1¶m2=value2) and I ran into a new issue. I have this code: List params = new…
Carles Sala
  • 1,989
  • 1
  • 16
  • 34
1
vote
0 answers

How to take two paramters (start_date and end date) to filter out events in django using query_params.get()?

I want to pass two parameters in GET method in django. The one is start_date and the second is end_date. But I just know about passing only one method. here is my code where I want to filter out account deposit history in range of dates . class…
Djangodev
  • 450
  • 3
  • 17
1
vote
1 answer

API Get metod returns null with some letters

I'm developing an example API for myself. I'll tell the problem with images. [HttpGet("getbyname")] public IActionResult GetByName(string name) { var result = _platformService.GetByName(name); if (result.Success) { return Ok(result); …
1
vote
2 answers

In NodeJS, how do I await the response of the http2 client library GET call?

I'm using the http2 client package with nodeJS. I want to execute a simple get request, and await the response from the server. So far I have import * as http2 from "http2"; ... const clientSession = http2.connect(rootDomain); ... const req =…
Dave
  • 15,639
  • 133
  • 442
  • 830
1
vote
1 answer

How to retrieve a resource (object) with GET METHOD in REST API by using date as a @PathParam in Quarkus

I am new to programming and I am trying to build a small dietary tracking app. I use quarkus RESTeasy JAX-RS and java to build my REST API. The user should be able to add foods he ate in days of the week. The user must be able to retrieve the foods…
1
2
3
10 11