Questions tagged [get-method]

An HTTP Protocol request method.

29 questions
212
votes
9 answers

How to get parameters from the URL with JSP

In JSP how do I get parameters from the URL? For example I have a URL www.somesite.com/Transaction_List.jsp?accountID=5 I want to get the 5. Is there a request.getAttribute( "accountID" ) like there is for sessions or something similar?
Josh Curren
  • 10,171
  • 17
  • 62
  • 73
7
votes
1 answer

Html.BeginForm loses routeValues with FormMethod.GET

I have noticed what Html.BeginForm() method encodes supplied routeValues into action attribute of FORM tag. This works well with POST method. But if method is GET all parameters in action URL are stripped by browser (tested on IE8 and Firefox…
Alexander Prokofyev
  • 33,874
  • 33
  • 95
  • 118
7
votes
4 answers

How to use GetMethod for static extension method

I've got an extension method: public static class StringEx { public static bool Like(this string a, string b) { return a.ToLower().Contains(b.ToLower()); } } How to reflect it properly via GetMethod with my parameters? I've…
CodeAddicted
  • 979
  • 2
  • 10
  • 13
3
votes
2 answers

how to append int value to GET url of retrofit in android

I have following url http://54.169.227.89:90/DataAccessService.svc/GetProducts/2 which i wanted to use i retrofit get method How to append 2 which is company id which i get from sharepreference during login Here is ma interface code public interface…
2
votes
3 answers

If XmlException.SourceUri is read-only, what good is it?

I have a couple places in my code where it throwing a new System.Xml.XmlException seems appropriate. I could just do throw new XmlException("Your XML sucks go fix it then try again."); But I think it's better to take advantage whenever possible…
East of Nowhere
  • 1,354
  • 4
  • 18
  • 27
1
vote
3 answers

GET method in php clean URL

I have successfully created clean url for my project.. now what i need to do is add variables to URL.. localhost/user1/file?action=add localhost/user2/file2?action=delete where user and file are already rewritten i dont want it to be like…
Jeyanth Kumar
  • 1,589
  • 3
  • 23
  • 48
1
vote
1 answer

Print http request response in JSON format

#!/usr/bin/perl use strict; use warnings; use JSON qw(decode_json); use JSON; use LWP::UserAgent; use HTTP::Request; #GET_METHOD my $usagnt_get = LWP::UserAgent->new; my $server_end_point_get = "http://192.168.201.1:8000/c/r"; my…
Kumar
  • 21
  • 3
1
vote
2 answers

How to login with retrofit2 using GET method

I am using a API for login http://abc.demoserver.com/API/login.php?username=johndoe&password=123456 this API is in GET method and also using retrofit2 so my code snippet is here. APIUtils.java public static final String BASE_URL =…
1
vote
1 answer

HTTP_Request2 GET error

I am trying to connect to my Amazon EC2 website from my PHP server hosted on Godaddy. So using HTTP_Request2, I use the following: $request = new HTTP_Request2('http://XX.XX.XXX.XXX:3007/something/something', HTTP_Request2::METHOD_GET); This…
user4553140
1
vote
2 answers

Is there a JQuery or JS equivalent to PHP's $name = $_GET['name']

I'm trying to figure out a way to read GET method information from a form with javascript. Our IT department has our servers on lockdown, and as the web team we can only use javascript to accomplish our tasks. I'd use PHP if I could, but I…
Ian
  • 3,266
  • 4
  • 29
  • 37
1
vote
1 answer

How to pass Arabic string via url (GET method) properly to find substring using php?

I am trying to pass Arabic search term via url (get method ) like this(user clicks thumbnail image):
user1788736
  • 2,727
  • 20
  • 66
  • 110
1
vote
0 answers

get only values with @property wrapping from a python class

I have a class that uses variables which have to be accessed by another class in a separate module. I therefore used the @property decorator to make these properties accessible. I would like, however, to have a method to retrieve these properties,…
TNP
  • 11
  • 3
1
vote
1 answer

Ajax response printing whole php code written in php file, What to do?

This is my http get code, here console.log(data) is printing whole php code instead of echoed statement. Kindly help me guys i am not able to figure out whats happening. I am making an ionic angular app. Angular Code // define angular module/app var…
Anky
  • 33
  • 4
1
vote
4 answers

Keeping GET variables from 1 page to anonter

The issue is that I want to keep the search variables that I used with a GET form when moving through the pages. It's like google does when you search for something and then you want to search for images, you just click on the images and don't need…
user3864308
  • 25
  • 1
  • 9
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