I have a file called 34.php?session=2534464a39a2c97cb7113689726a4e52 in my /var/www/html folder but I can't view this file in the browser. I want my browser to execute this code via PHP from the browser but It doesn't :(
Thanks..
You'll need to URL encode the ?, otherwise it won't be interpreted as a part of the filename. Try 34.php%3Fsession=2534464a39a2c97cb7113689726a4e52
Related
I'm writing an apache2 module
by default and when viewed in a web browser, the module would only print the first lines of a large file and convert them to HTML.
if the user choose to 'download as...', the whole raw file would be downloaded.
Is it possible to detect this choice on the server side ? (for example is there a specific http header set ?).
note: I would like to avoid any parameter in the GET url (e.g: "http://example.org/file?mode=raw" )
Pierre
added my own answer to close the question: as said #alexeyten there is no difference. I ended by a javascript code the alter the index.html file generated by apache.
I have a text file "data.txt", and based on input to an html form I want to display a single line from that file. My result is delivered by a CGI script which needs to access data.txt, but I don't want a user to be able to type in "data.txt" into their web browser and see the whole file. Is there a simple way to make "data.txt" readable by the CGI script but not accessible by loading it with the browser?
I'm using standard apache on ubuntu. I believe the suexec module can do this, but I'm hoping for a simpler solution just using fancy permissions, chowns, etc. Thanks-
Store your datafile outside of the webserver filetree (for apache, check the DocumentRoot).
Would like to ask, can we configure a RDP file in the client side to launch a specific url?
I already have a RDP file that will launch IE in the server. I would like a specific url being launch together with the IE.
I notice,the url can be added as a commandline argument in the properties of the RemoteApp.
But,it is possible for us to set the url in RDP file in the client side ? (The file can be opened as notepad correct? Can we edit there?)
Thanks a lot in advance,
RDP files are plain text. As far as I know, the full RDP file format is not documented, but as you noticed, it is rather easy to read.
The command line arguments are passed via the remoteapplicationcmdline:s: parameter.
If you change the file, you will get certificate errors unless you re-sign it with rdpsign.
What is the use of Base URL is Selenium IDE because even when I enter the wrong URL there or leave it blank, and run the script, it just runs fine.
I have this URL, as base URL http://test.info:50/test and in the open command when I use the part /test of the URL, so the URL to be opened should be http://test.info:50/test/test (which is not the actual URL) and selenium keeps running the script on the Base URL above and shows no error.
So, my question hear is what is the use of Base URL when it could be left blank or empty. What is the use of the Open command when I have used the full URL in the Base URL part.
Hope the question is clear. Please help.
The base URL should be the index of your site. NOT the directory under test.
For example,
BaseURL: http://google.com/
Open: /search
This will open http://google.com/search as the beginning Url. From then, you should continue testing.
In your case, specify
BaseURL: http://test.info:50/
Open: /test
And you'll be golden.
EDIT:
and selenium keeps running the script on the Base URL above and shows no error.
Selenium IDE will show no errors because Selenium IDE doesn't care where your test is ran.. it's not limited to that (nor should it be). It will only spit out an error for something is wrong in your script. Nothing to do with your opening of urls. You could open something like /somebullcrapdirectory and it'd still be fine. It'd fail at the point of performing any subsequent actions though, since /somebullcrapdirectory would actually be an invalid directory.
I hope you understand Abhi,
When user give the blank base url after that comes the error,
[warn] Base URL is not set. Updating base URL from current window.
[error] baseUrl wasn't absolute:
We can simply use the open command and leave the target section blank.
This will use the base URL and open it.
The URL specified in Base URL input field in de Selenium IDE, and the URL specified in the target parameter of the open command, will not just simply be concatenated. Opening /test/ will just be seen as an absolute URL for your domain.
You can, however, specify a target ./test/, which requests, as I experienced, requests http://test.info:50/test/test/. I find this very useful, as in some environments, my web application will reside on the root and in some other environments in a base path like /myapp/.
With respect to a blank Base URL, I assume that this worked because the browser page in which the test was run already showed a page from the correct domain. If you would have executed the open command on a page in any other site, the open command would have requested the page /test/ from that site. After that, that base URL would have pointed to that site.
It is taking forever for Selenium to open browser. Command line shows the following:
It looks like your baseUrl (http://localhost/indico) is pointing to a file, not a directory (it doesn't end with a /). We're going to have to strip off the last part of the pathname.
Create a folder with name indico and then keep your html files in it.
Now give http://localhost/indico/ as base url and /main as absolute URL which appends the base url and become http://localhost/indico/main .
Regards
The firefox driver is much faster than the ie one. Maybe you should start off with that one and continue from there.