get

Sending POST data with GET request valid?

Using Curl for example, I can "post" data in a GET request. Is this a valid thing to do? With that I mean: Is it not forbidden by any RFC specification? Does someone out there use it with good reason? Thanks for any help. ...

Reusing ASP.Net URL

Can I reuse a bookmarked url [GET Method ;Framework ASP.Net Db Oracle] after logging off?? ...

Understanding .get() method

sentence = "The quick brown fox jumped over the lazy dog." characters = {} for character in sentence: characters[character] = characters.get(character,0) + 1 print(characters) I don't understand what characters.get(character,0) + 1 is doing, rest all seems pretty straightforward. Thanks ...

trying to send array through GET variable, when printed, var equals string of 'Array'

Whenever i build a URL i.e. cart.php?action=add&p[]=29&qty[]=3&p[]=5&qty[]=13 and try to grab the p variable and the qty variable, they = 'Array' var_dump = array(3) { ["action"]=> string(3) "add" ["p"]=> string(5) "Array" ["qty"]=> string(5) "Array" } i create half the url with php, and the other half is concatenated with ja...

How do you write a get method that retrives the title of an object, not its Id - w/ ASP.NET MVC

So this is the method in my repository I use to get records from my db via its Id public BlogsTable GetBlogPosts(int id) { return db.BlogsTables.SingleOrDefault(d => d.Id == id); } And this is my controller using the get method public ActionResult Details(int id) { BlogsTable blogPostDetails = re...

rails - passing :params in url

Hi folks, I am stuck one more time ... and one more time I suspect it's a stupid syntax problem: I want to pass 2 vaiables in the url with my super simple search form. I was expecting a URL like this: http://mydomain/categories/search?search=pdf&os=2 But I get this: http://mydomain/categories/search?search=pdf&os[]= I though...

JQuer Ajax GET basics

Hi folks, me again - sorry - I am trying to "teach myself" with help here some basic Jquery Ajax so far so good, but .. no offence to people sometimes the answers are very specific to requests - great, but may not be as helpful to others as certainkly a quick google search can get complex. I have got a lot, but it is the simple things t...

Alternative to Query Strings to Pass Data Between ASP.Net Pages?

Hi, I am currently using a number of query string parameters to pass some data from one page to a second page (the parameters hold confirmation/error messages to display in the second page), that due to a third party product can no longer work correctly in the production environment. The user completes an action on the first page, and i...

how post and get specialchars in url?

how post and get "&" symbol in url? in php. please help me ........ ...

a strange $.get()

Hello everyone, I have this code, a simple jQuery GET: $.get(url, params, function(){ function_call() }) I wonder why the function_call() is never executed. The server at url is up and running and changing the function to $.ajax() shows no errors (the error option is not executed), but it's not working. Any clue? param...

How do I pass the # symbol as part of a GET querystring in the URL?

I am using javascript (using jquery) to pass a # symbol as a GET parameter via AJAX call. The problem right now is that the # symbol is breaking up my querystring. Any help appreciated. Thanks! ...

How to decode a string on runtime in java?

I'm creating email client, when i receive emails from blackberry server it sends file name as "=?utf-8?B?anBlZ2F0dGFjaG1lbnQuSlBFRw==?=" but the original filename was "jpegattachment.JPEG", and sometime I get the plain text when I receive from other mail servers. So here my problem is I can get a string which may or may not be encoded. ...

REST-style URLS and PHP

Hi Guys, I'm having a really hard time getting my head around using REST-style URLS. Can I get a little help with this? Right now I have a query string like so: example.com/calendar_expanded?date=1270094400 I have a mod rewrite that's hiding the .php extension. How do I Make this calendar_expanded/date/1270094400 happen. $_GET t...

Call Web Service .asmx using $.get jquery

I need to call a simple method from a WfService.asmx file,using $.get(). It works fine with POST method.Here's the Method: [WebMethod] public int Sum() { return 10 + 10; } Now code using Jquery: $.get('WfService.asmx/Soma',function(data){ alert(data.d);},"json"); And i get a error message. What am i doing wrong? ...

Checking Correct Answer and Submitting Form

I am admittedly not as skilled in PHP as I would hope to be. Most of my experience is with Wordpress loops. I'm trying to create a very simple quiz that carries the number of correct answers in the URL (eg. domaindotcom/?p=3 if they've got 3 correct answers so far). I'm using the following PHP code to start it off: <?php /* Gets ...

POST becomes a GET in Flash Builder 4 beta 2 according to Fiddler monitor?

My HTTPService requests in Flash Builder 4 are working fine for GETs but not for POSTs, where I am sending along params in addition to the name/value pairs on the query string. According to the Fiddler monitor, the header always shows a GET even when I explicitly set the method = "POST". I step through my code and see the method being ...

IIS Files with No Extension

Hi, I recently saw a website in which the url was formulated like this: http://subdomain.domain.com/script/?var=value I was wondering how to do this in IIS, and how he put a slash in between the script and the GET variables, and how he had the script with no extension in the first place. Any help? ...

Google App Engine: Easy way to work with GET, POST and Cookies

When using webapp from Google App Engine, how can I distinguish POST and GET? Which one gets priority and how can I seprate them? A piece of code below shows the way to obtain a POST/GET field value: class AddWordHandler(webapp.RequestHandler): def post(self): theWord = str( self.request.get('theWord', default_value="no") ) ...

Java: getting a value from an array from a defined location

I have an array of numbers and would like to retrieve one of the values from location "index". I've looked at the Java documentation http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/Array.html but my code still isn't compiling. here is my method: public class ConvexPolygon implements Shape { java.awt.Point[] vertices; ...

how to select two record from two different table with one query in mysql

how to select two record from two different table with one query in mysql?? for a search query im using $search = $_GET['gd'] $arama_sonuc = mysql_query("select * from mp3 where baslik like '%$search%'"); well its ok. it shows me results from mp3 table. but with same query i need to search something on HABERLER table too.. how can i ...