Here's the scenario.
My Java web application has a following path
https://www.mywebsite.com:9443/MyWebApp
Let's say there is a JSP file
https://www.mywebsite.com:9443/MyWebApp/protected/index.jsp
and I need to retrieve "https://www.mywebsite.com:9443/MyWebApp" within this JSP file.
Of course, there is rather a lazy + silly way of j...
I have a php script that takes in five variables from the url string like this:
/dimg.php?s=250x250&tc=0-0-0&bc=204-204-204&type=jpg&t=blahText
The only required variable is s. The script defaults if all the others are not set.
My question is how do i get the url to look like this with mod_rewrite:
/dimg/250x250/0-0-0/204-204-204/jpg...
I was wondering which is the best approach to get the catgeory ID when listing the posts within a particular category. Normally, the urls look something like this : www.example.com/?cat=4 and it is pretty easy to get the id. However, I really need the urls to be routed like this www.example.com/categories/hotels . wordpress provides an e...
Hello,
I am trying to verify that a video service is provided from an URL in python. I am asking does anyone know of any good libraries to use or a way to do this. I have not found much info for this on the web.
Thanks
...
Hi,
I own a Domain name e.g. www.mydomain.com
I also own a webserver e.g. www.myserver.com
After navigating to my webserver via www.myserver.com clicking on links to different pages within my servers file structure will result in a change in URL...
For example
Clicking on a link to main.html will result in www.myserver.com/main.htm...
Hi all, I am working on a big (lots of classes) java project and I have it's source code but most of the classes are dynamically created or downloaded via ClassLoaders.
Anyways, I'd like to be able to "override" the java.net.URL class so I could trace down the calls to open a url. I can not use a sniffer because the content is SSL encryp...
Hi!
I'm having problems finding the width and height of an image. I'm trying to pass it to the URL so I can set it as a PHP session variable.
location.href="homeview.php?x=" + dd.elements.image1.x + "&y=" + dd.elements.image1.y + "&h=" + document.getElementById('image1').height;
the URL reads as such with an example image:
homeview...
How can I write a Greasemonkey script that will go through a list of URLs (on the same domain) and enable an XPath query to be performed on the resulting DOM?
Thanks
...
When developing with Django without a web server (serving directly from Django) I have a problem with external urls that lack the domain part and have parameters.
Let's say I'm using a javascript library that does an ajax call to "/prefix/foo/bar?q=1" (the url is not something I can change). It is not a problem for the production serve...
I want to call a dynamic JSP page and pass data to it so it will run a query on my database and then return a set of results.
I would like to do this without a visible page refresh.
So in essence i want to pass two parameters to the dynamic page, policyID and columnID. These will vary depending on which tab (policyId) is active and wh...
Before I ask my question: I just started ASP.NET MVC, so an advanced answer will maybe hard to understand ;)
I'm having 3 tables (I'll add just a few of the fields below)
Shops (ShopID, Name)
Products (ProductID, Name, ShopID)
Comments (CommentID, ProductID, UserID, CommentText)
Now what I want to do is this:
www.site.com/Shops
...
Hi,
I have urls with references to folders that are not direct ancestors of the page pointed to - like these below:
http://www.mysite.com/home/../help/helppage.aspx
http://www.mysite.com/contact/../help/helppage.aspx
http://www.mysite.com/accounts/performing-accounts/../../help/helppage.aspx
I'd like to be able to unamb...
Traceback:
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py" in get_response
92. response = callback(request, *callback_args, **callback_kwargs)
File "/home/ea/ea-repos/hell/life/views.py" in linkedin_auth
137. token = oauth_linkedin.get_unauthorised_request_token()
File "/home/ea/ea-repos...
Using ASP.Net, I am trying to determine the actual URL requested by the user. For example if I type the following into my address bar:
http://mysite/////one//two
Fiddler shows me that this is the URL being sent over the wire however by the time it reaches ASP.Net all of the variables in HttpContext.Current.Request are showing this UR...
Is there a better way to write this procedure that completes a relative url for my website?
if (!url.startsWith('http')) {
url = + location.protocol + '//' + location.host + (url.startsWith('/') ? '' : '/') + url
});
...
Hello,
I'm writing a blog in Python and have come to the point where I have to decide on the URL scheme to use. It's tempting to just list the entries start to end, like:
http://myblog.com/1
http://myblog.com/2
...
http://myblog.com/1568
And on the server side I would just have the blog entries in a python list. My fear though is tha...
In c# i need to frame the folllowing URL dynamically,here Action is redirectURL and the Controller is Books,when i post the page i send the url to some other page in follwing format.is it posible to frame the URL with "localhost:7187" dynamically?
http://localhost:7187/Books/redirectURL
...
I have been tracking down a bug on a Url Rewriting application. The bug showed up as an encoding problem on some diacritic characters in the querystring.
Basically, the problem was that a request which was basically /search.aspx?search=heřmánek was getting rewritten with a querystring of "search=he%c5%99m%c3%a1nek"
The correct value (...
I'd like to pass a URI to a constructor and get back an object on which I can call obj.type, obj.host, obj.port, etc. The "Request" object of the urllib2 module is close to what I need, but not quite it.
...
I'm parsing the links found on webpages, and I'm looking for a way to convert URLs like this:
http://www.site.com/./eng/.././disclaimer/index.htm
to the equivalent and more correct
http://www.site.com/disclaimer/index.htm
mainly for avoiding duplicates.
Thank you.
...