Questions tagged [getmethod]

An HTTP protocol request method.

156 questions
1
vote
4 answers

CodeIgniter getMethod() Deprecated and Submit Button not functioning

I practice my CodeIgnitor right now and I'm new to them still. I am doing the inquiry form and wanted to make sure that it checks the form is correctly verified. After clicking on the submit button, It will send the form to a corresponding…
1
vote
0 answers

Custom Response for client in REST API in case of success or failed output

In my REST API in Spring Boot. I have made three methods, GET, POST & PUT. I want to find user details (which is saved in Person class) by giving userId and userSubId and display the result (either in case of success or failed) as response. Also, I…
Superman
  • 221
  • 2
  • 11
1
vote
1 answer

PHP - GET METHOD - Reading posted URL variables values

I have two files, the first is a form (signup.php) that posts user inserted fields (first name, last name, user name, email..etc) into another file containing an error handlers (Signup.chk.php) using post method. in case of error in the inputs, i…
1
vote
1 answer

Call a method through reflection fails

I try to call a method using reflection but method is not called. Below is my code: private abstract class A { public abstract void DoSomething(string asd, T obj); } private class MyClass : A { public override void…
Neron
  • 13
  • 2
1
vote
1 answer

Different output based on the way I invoke a get() method

Given the below code in the main() method when calling get() method in class Queue the output differs when I do this in a way put forward below: All letters shown in the output of this code as expected : class Queue { char get() { if…
1
vote
0 answers

Flask SQL Alchemy query not returning column value, Python

I have the following data in a table named shippers. id companyname phone 1 Company A 3105590430 I'm trying to extract the data in both columns using SQLAlchemy. I'm able to extract the data in the column labeled companyname but…
Zach
  • 421
  • 1
  • 5
  • 11
1
vote
1 answer

Reflection GetMethod with a type paramenter

The following line is not running properly, and I'm not sure why. The Error: System.Reflection.TargetParameterCountException: parameters do not match signature And the line of code in question: typeof(Resources).GetMethod("LoadAll", new Type[] {…
1
vote
1 answer

C++ WMI execute method of object

I'm trying to execute the Delete method of a CIM_DataFile object from C++ I was able to do it in python without any problems: import wmi c = wmi.WMI() result = c.query("SELECT * FROM CIM_DataFile WHERE Name = \"C:\\deleteme.txt\"") for file_ in…
Daniel
  • 31
  • 1
1
vote
4 answers

How to send a JSON object using GET method

My controller method with WebApi2 [HttpGet] public IEnumerable GetProducts(ProductSearchCriteria searchCriteria) { //searchCriteria is always null here!!! Why? return db.Instance.LoadProducts(searchCriteria); …
Maximus Decimus
  • 4,901
  • 22
  • 67
  • 95
1
vote
3 answers

Java: I'm trying to display a date with methods from a class i made called Date but when i try to run it into another class the numbers won't display

i need help with my homework. It's about making your own class and then using the methods you made inside that class into another class to perform a certain task.I've made two classes one being Date with my constructor and all my methods for the…
1
vote
1 answer

How to fix my getTotalInventoryCount()? bad operand types for binary operator?

Hi sorry beginner coder here and I am not good at explaining things very well but have been getting this error code that states: bad operand types for binary operator '+', first type: int; second type:java.util.ArrayList. Then it highlights the…
Tre
  • 37
  • 8
1
vote
1 answer

How to check token based authentication for GET and Post Methods in asp.net

How to use token based authentication for GET and Post Methods and also subsequent methods in asp.net
Muthu
  • 165
  • 4
  • 18
1
vote
0 answers

How to set character set of URL which is called from GetMethod in Java?

I am trying to call url from java servlet with GetMethod: HttpMethod method = new GetMethod(url); method.setRequestHeader("Content-Type", "text/plain; charset=" + "UTF-8"); Error message: Invalid uri…
1
vote
3 answers

How to show encrypted password in URL

I encrypted password, and now trying to show in URL, but in URL i am always getting actual password which is real: kimd I guess i am not passing $encrypted_string in url, please check my php script and let me know that How can i pass…
Sun
  • 6,768
  • 25
  • 76
  • 131
1 2
3
10 11