Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Who Add "_" Single Underscore Query Parameter?

I have a PHP server running on Apache, I get lots of request looks like this,

10.1.1.211 - - [02/Sep/2010:16:14:31 -0400] "GET /request?_=1283458471913&action=get_list HTTP/1.1" 200 547 0 "http://www.example.com/request" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729)" 28632 15602

The _ parameter is mysteriously added to the request. I am trying to find out who is doing that.

There is a NetScaler running in front of Apache.

like image 362
ZZ Coder Avatar asked Sep 10 '10 19:09

ZZ Coder


People also ask

Can we use underscore in query params?

Query parameter name: As you can imagine, a query parameter name is a single entity. Since it's one name, using an underscore makes sense here. It's no surprise that the common UTM parameters such as utm_campaign, utm_medium, utm_source, utm_content and utm_term use underscore instead of a dash.

How do you pass a hyphen in URL?

Consider using hyphens to separate words in your URLs, as it helps users and search engines identify concepts in the URL more easily. We recommend that you use hyphens ( - ) instead of underscores ( _ ) in your URLs.


2 Answers

jQuery adds a parameter like that to get around IE's caching.

edit: it only adds it for get requests, and only if the option cache is false:

cache: false
like image 152
Patricia Avatar answered Nov 14 '22 09:11

Patricia


It could be the JQuery CacheBuster parameter.


Resources :

  • [jQuery] GData JSON queries "Invalid query parameters:_"
  • [jQuery] Turn off Cache Busting in $.getScript
  • Cache-busting
like image 10
Colin Hebert Avatar answered Nov 14 '22 10:11

Colin Hebert