query-string

Mod_rewrite: hide query string from users with sub domain

两盒软妹~` 提交于 2019-12-24 08:49:12
问题 I am trying to do something very simple yet still confusing. I have a link http://sub.example.com/folder/?qvar=value I want this to be accessible via: http://sub.example.com/folder/value Very simple yet I cannot figure this out. I have tried the following to no avail: #RewriteEngine On #RewriteRule ^(.*)$ ?qvar=$1 [L, QSA] #RewriteRule ^(.*)$ /folder/index.php?qvar=$1 [L,QSA] #RewriteRule ^(.*)$ index.php?qvar=$1 [L,QSA] #RewriteRule ^(.*)$ /folder/?qvar=$1 [L,QSA] #RewriteRule ([^/\.]+)/?$

Asp.net MVC ReturnUrl variable not showing up with method FormMethod.Post in Html.BeginForm

荒凉一梦 提交于 2019-12-24 06:35:29
问题 The default template in MVC3 sets a 'returnurl' variable in the query string of the logon page. This page then posts back to a controller @using (Html.BeginForm()) { That is then picked up in the controller like so [HttpPost] public ActionResult LogOn(LogOnModel model, string returnUrl) { I wanted to add a CSS class to the form so I changed the helper to: @using (Html.BeginForm("LogOn", "Account", FormMethod.Post, new { @class = "form-horizontal" })) But now information in the query string

Issue with passing querystring parameters via Http Get to an iframe in IE

你离开我真会死。 提交于 2019-12-24 05:38:07
问题 This is a follow up to my previous question: Problem passing parameters via Iframe in IE. Which was never solved. Here's the core of it: I'm trying to execute an HTTP GET from my website to another website that is brought in via iframe. On Firefox, you can see in the source that the correct url is in the iframe src along with it's correct parameters-- and it works. On IE, you can see in the source that the correct url is in the iframe src along with it's correct parameters-- and it doesn't

HTAccess mod rewrite issue using QSA

倾然丶 夕夏残阳落幕 提交于 2019-12-24 04:22:01
问题 I want to add a parameter to a URL but currently it isnt showing in the $_GET global. A snippet from my htaccess file is as below: RewriteRule ^account/blogs/([0-9]+)/([^\s?]+)/?$ /account/blog.php?blogId=$1 [L,QSA] Then in my php code i want to add a link such as: /account/blogs/1/ThisIsWhereTheTitleGoes?delete=1 The wildcard (any char but space) option is for the blog title as i never know what it would be. I know want to add a query string param on the end such as ?delete=1. I however dont

Can I have an URL query with numerical, possibly equal (non-unique) keys?

强颜欢笑 提交于 2019-12-24 02:14:45
问题 I am building an HTML5 single page app, and I want to allow the user to keep the current application state for later use. I want to achieve this by creating a link URL to my page, with a specially crafted query part. When called again, with the URL, the application would parse the query part and recreate the stored state. Now, some part of the state is a list, whose items are numerical values and an associated text. The floating-point numerical values, as well as the text is not required to

How to send params in url query_string in Symfony?

江枫思渺然 提交于 2019-12-24 01:51:56
问题 I want to send parameters in query_string URL from Twig page and get it in the controller. for example: index.html.twig <a href="/newcont/add/{{ id }}">New</a> and controller : namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; class Newcont extends Controller { /** * @Route("/newcont/add/{id}", requirements={"id": "\d+"}) */ public function

Sending sensitive data as a query string parameter

巧了我就是萌 提交于 2019-12-23 21:38:45
问题 We are reviewing the design of a system. And need to verify what we think may be a security issue. In this system some sensitive information is sent in the query string. Question is: Can the query string parameters be read as the request goes over the internet, even if the request is sent over https? Can the query string parameters be read be read from the browsing history on the client machines? 回答1: When you use HTTPS, the SSL/TLS connection is established before any HTTP traffic is sent,

Why is PHP not seeing my query string?

你说的曾经没有我的故事 提交于 2019-12-23 19:31:59
问题 This phpinfo() demonstrates the problem. I'm passing the URL a query string of: ?qwerty=asdfg As a result, I'm expecting it to list these two PHP variables: _REQUEST["qwerty"] asdfg _GET["qwerty"] asdfg And also this query string: _SERVER["QUERY_STRING"] qwerty=asdfg However, it's not working. None of these variables seem to be set at all. I'm using lighttpd. This may or may not be related to the problem, but my greengar.com-lighttpd.conf looks like this, because I'm using WordPress for most

301 Htaccess RewriteRule Query_String

冷暖自知 提交于 2019-12-23 16:23:55
问题 Problem: Visitors open the url website.com/?i=133r534|213213|12312312 but this url isn't valid anymore and they need to be forwarded to website.com/#Videos:133r534|213213|12312312 What I've tried: During the last hours I tried many mod_rewrite (.htaccess) rules with using Query_String, all failed. The last message in this topic shows a solution for this problem, but what would be the rule in my situation. I'm very curious how you would solve this problem :)! 回答1: The following will handle the

Compojure Routes losing params info

这一生的挚爱 提交于 2019-12-23 15:29:05
问题 My code: (defn json-response [data & [status]] {:status (or status 200) :headers {"Content-Type" "application/json"} :body (json/generate-string data)}) (defroutes checkin-app-handler (GET "/:code" [code & more] (json-response {"code" code "params" more}))) When I load the file to the repl and run this command, the params seems to be blank: $ (checkin-app-handler {:server-port 8080 :server-name "127.0.0.1" :remote-addr "127.0.0.1" :uri "/123" :query-string "foo=1&bar=2" :scheme :http :headers