url

Storing URLs while Spidering

I created a little web spider in python which I'm using to collect URLs. I'm not interested in the content. Right now I'm keeping all the visited URLs in a set in memory, because I don't want my spider to visit URLs twice. Of course that's a very limited way of accomplishing this. So what's the best way to keep track of my visited URLs?...

Easy way to parse a url in C++ cross platform?

I need to parse a url to get the protocol host path and query in an application I am writing in c++. The application is intended to be cross platform. Im surprised I cant find anything that does this in boost or poco libraries. Is it somewhere obvious Im not looking? Any suggestions on appropriate open source libs? Or is this something I...

Mod Rewrite Hide Folder

I think this is a pretty simple question. How do you an apache rewrite to hide a folder. EX: www.website.com/pages/login.php to www.website.com/login.php or www.website.com/pages/home.php to www.website.com/home.php The folder needs to alway be hidden. thanks ...

Submit WordPress form password programmatically

How can I let a user access a WordPress protected page with a URL that will submit the password in the form below? I want to be able to let a user get to a password protected WordPress page without needing to type the password, so when they go to the page, the password is submitted by a POST URL on page load. This not intended to be se...

How do I do this in my Django URLs? (.json, .xml)

Suppose this is my URL route: (r'^test/?$','hello.life.views.test'), How do I make it so that people can do .json, .xml, and it would pass a variable to my views.test, so that I know to make json or xml? ...

Wicket: Relative to absolute URL or get base URL

If I have a relative path to a static asset (flash/blah.swf), what is the best way to programmatically convert this to an absolute URL (http://localhost/app/flash/blah.swf)? Or what is the best way to get the base URL of the Wicket application? I've tried using RequestUtils.toAbsolutePath but it doesn't seem to work reliably and is frequ...

problem in decoupling urls.py , while following a tutorial of django

http://docs.djangoproject.com/en/dev/intro/tutorial03/ I was at the step Decoupling the URLconfs where the tutorial illustrates how to decouple urls.py. On doing exactly what it says, i get the following error- error at /polls/1/ nothing to repeat Request Method: GET Request URL: http://localhost:8000/polls/1/ Exception Type: error ...

How to make URL pattern like app.example.com?

I have my domain say "example.com" (java, GlassFish Web Server) Now I have 3 application.. say A,B,C. Now what I want is, if user hit a.example.com OR example.com/X then A application should get invoked. similarly for B and C. b.example.com or example.com/B, c.example.com or example.com/C. like mail.google.com news.google.com. H...

Why does IE8 remove fragment identifiers from link urls in Web Slices?

I have built a page to function as a Web Slice in Internet Explorer 8. The links on the page work fine if I view the page in the main browser window. However, when I add the page to the favorites bar as a Web Slice and view it the links do not work the same. IE strips the fragment identifier from the link URLs (e.g. when clicking on a...

Get #part in URL with PHP/Symfony

Hi, I'm working with Symfony 1.2. I've a view with a list of objects. I can order them, filter them by category, or moving to the next page (there is pagination). Everything is done with AJAX, so I don't have to load all the page again. What I want to achieve is to have http://urltopage#page=1&order=title&cats=1,2 for example; ...

How to launch standard browser out of Java application?

Hi there how to I open a URL with the systems standard browser with Java? I currently use this code for opening a specific URL (locally stored html file), which works fine when I run the application with my IDE (Eclipse), but after bundling the software, it doesn't work any more. url = MainWindow.class.getResource("mySite.html"); ...

NS_BINDING_ABORTED Javascript window.location.replace()

Hi all, I'm writing some Javascript code and I'm trying to change the current page as the result of the user clicking a button. I'm using this snippet of code: window.location.replace("/customer/order/12"); containing the relative URL within my site that I want to navigate to. When this code runs (looking at it in Firebug), the url st...

python regular expression for domain names

I am trying use the following regular expression to extract domain name from a text, but it just produce nothing, what's wrong with it? I don't know if this is suitable to ask this "fix code" question, maybe I should read more. I just want to save some time. Thanks pat_url = re.compile(r''' (?:https?://)* (?:[...

How can i make a link to update my iPhone application?

hi, i know how to make a link to my app on the appstore with this URL itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id= but i don't want the user goes on the software page but directly in the update tab what is the link to do this? is there a link to update the app ?(if an update existing) thanks ...

How do I alter the URL?

I'm currently working on a big web application for a company and we are about 4 months in, but we have a harmless(but annoying) problem that we have just left because we didn't time to change it. The way we setup our MVC is leaving us with the Servlet being stacked one after the other endless amounts of times on the URL so if we had a S...

ID + Slug name in URL in Rails (like in StackOverflow)

Hey, I'm trying to achieve URLs like this in Rails: http://localhost/posts/1234/post-slug-name with both ID and slug name instead of either http://localhost/posts/1234 or http://localhost/posts/post-slug-name (right now I have just slug name in URL, so this part is over). How can I do this? UPD I found an article on this: htt...

Rewrite URL in IIS7 .NET MVC

Hi, I'm trying to rewrite the url: https://mydomain/phone-append to https://mydomain/Service/PhoneAppend using the following rule: <rewrite> <rules> <rule name="Phone Append"> <match url="phone-append" /> <action type="Rewrite" url="/Services/Index" appendQueryString="true" /> ...

is there any IIS setting require for url rewriting?

Hello, i have used URL rewriting using global.asax file. url rewriting is working file on local machine but when i made it online its not working. void Application_BeginRequest(Object sender, EventArgs e) { var extension = Path.GetExtension(Request.PhysicalPath).ToLower(); if (File.Exists(Request.PhysicalPath)) { if (ext...

how to get a data from a url and redirect based on the content

HI.. i want to know how to fetch or get a data from a url (for ex : in the following url http://abc.xyz.com i need to fetch only xyz and have to redirect to that xyz web page) and have to redirect it to the web page based on the content which i fetched. thank u ...

How reliable are URIs like /index.php/seo_path

I noticed, that sometimes (especially where mod_rewrite is not available) this path scheme is used: http://host/path/index.php/clean_url_here --------------------------^ This seems to work, at least in Apache, where index.php is called, and one can query the /clean_url_here part via $_SERVER['PATH_INFO']. PHP even kind of advertises t...