url

C# How can I get server error from a URL?

We have a url and we need to check whether web page is active or not. We tried following code: WebResponse objResponse = null; WebRequest objRequest = HttpWebRequest.Create(URL); objRequest.Method = "HEAD"; try { objResponse = objRequest.GetResponse(); objResponse.Close(); ...

Fastest possibility of listing a directory and getting the URLs of every file in Java

Hi guys, i am planning to perform a standard list command to get a vector or a list of the content of a directory. I know this is easy by using File f = new File("C:/testDir"); File[] files = f.listFiles(); The problem is that I need a list/array/vector of URLs. So my thoughts were to convert the files to URL. With the org.apache.co...

Creating a body ID in CodeIgniter

Is there a way to create a dynamic body id in codeigniter for different pages that converts spaces to dashes? I have been around forums and search engines but I have no luck. Here is my code: <body id="{$template.title}"> Here is the output: <body id="About us"> I want it to be: <body id="about-us"> let me know Thank you ...

Apostrophe (Smart Quote) in search throws Apache 400 Bad Request

I have a search form in my web application that throws an Apache 400 Bad Request error when you search using an apostrophe (smart quote, i.e. ’ not '). This happens when someone copy and pastes from Microsoft Word (which automatically converts tick marks to smart quotes). The form causes a GET request which puts the search string in t...

Is it good idea to use URL names with special characters?

Is it good SEO to have URL's (page names) with non-english characters like Chinese names in URL's? ...

play video from URL retrieved from ALAsset in iOS

I'm still fairly new to Obj-C and the idea of blocks. I read this post about displaying images from url retrieved from ALAssets: http://stackoverflow.com/questions/3837115/display-image-from-url-retrieved-from-alasset-in-iphone Besides being able to view picture files in a UITableView using the ALAsset framework, I want to be able to pl...

jQuery ui autocomplete plugin change PHP request URL

Hello, I'm using this plugin: http://jqueryui.com/demos/autocomplete/#remote Works great but I would like to use the request URL like this: "www.mysite.com/search/my search input" and not like this: "www.mysite.com/?term=my search input" because I use codeigniter and that's how I work with URLs. So I will need to append the search input...

NameValueCollection to URL Query?

I know i can do this var nv = HttpUtility.ParseQueryString(req.RawUrl); But is there a way to convert this back to a url? var newUrl = HttpUtility.Something("/page", nv); ...

RegEx help for IIS URL Rewrite

I need to take request for www.domain.com/123456/Catalog.aspx and rewrite to www.domain.com/Products/Catalog.aspx?ItemID=123456 where 123456 will always be numbers. Any help is appreciated. Thanks. ...

Wordpress url error on form actions on unix web server (~...)

Hello all ! I have an error with my wordpress installation... I explain myself.. : My wordpress is now on an unix based server with directadmin to manage my domains... I have configured a new domain on witch I can access by : http://ipaddress/~username... Then, for my personal needs, I access to this website through another domain name u...

How to make Apache Web Server enforce strict URL addressing

I want to make apache enforce strict URL addressing rules, example, i have a file on my server called blog.html, when i type in the address example.com/blog , it automatically goes to the blog.html file.....is there anyway to stop this? I am running a LAMP stack on Ubuntu Server 10.04. ...

Valid url separators

I have a long url with several values. Example 1: http://www.domain.com/list?seach_type[]=0&amp;search_period[]=1&amp;search_min=3000&amp;search_max=21000&amp;search_area=6855%3B7470%3B7700%3B7730%3B7741%3B7742%3B7752%3B7755%3B7760%3B7770%3B7800%3B7840%3B7850%3B7860%3B7870%3B7884%3B7900%3B7950%3B7960%3B7970%3B7980%3B7990%3B8620%3B8643%...

Implementing URL slug functionality in a website

I would like to know how to implement a URL slug functionality in a website, without having the ID of the record currently being viewed show up in the URL. For example, StackOverflow URLs look like this: http://stackoverflow.com/questions/3099232/mvc-dynamic-views-from-url-slug. Notice the URL contains the ID of the record. If I were to...

Help about htaccess and php

Hi, I am building a php site(raw coding). I want to modify the url. i think htaccess is the solution. but i am weak is this. can u people help me about this? my urls are like these: www.site.com/index.php www.site.com/invoice_details.php?invoice_id=100 www.site.com/user.php?uid=20&type=1 www.site.com/client_details.php?cid=10&status=ac...

How do I access the existing running windows forms application through url?

I have a windows forms application and which provides a way to search the database based on the provided value. Sometime I need to open the application through a simple html hyperlink with the search result while loading itself. There are two questions/doubts from here. How to access the existing running windows forms application as ur...

how to generate links in php?

This is a very basic question but I couldn't seem to find anything on Google, hm. Anyway, I'm not referring to creating links, i'm talking of generating links like site.com/1 or http://stackoverflow.com/questions/3870639/how-to-generate-links-in-php, the numbers after the url are stored in the database with a corresponding post for exam...

how do i see the url my computer is currently hitting?

I am on Mac OSX. I wrote a program to parse a few websites. The websites are being accessed using curl. How can I view which url my computer is currently hitting? ...

Transmitting newline character "\n"

Given the following URL (working, try it!) https://select-test.wp3.rbsworldpay.com/wcc/purchase?instId=151711&amp;cartId=28524&amp;currency=GBP&amp;amount=1401.49&amp;testMode=100&amp;name=Tom%20Gul&amp;address=24%20House%20Road\nSome Place\nCounty&postcode=TR33%20999&[email protected]&country=GB If you click on the link and g...

URL Rewriting on godaddy hosting

Hi, I've just uploaded my site to GoDaddy hosting and experiencing some problems with URL rewriting. Google is full of similar complains but non of the fixes that help the others did the trick for me. My .htaccess file looks like this: DirectoryIndex index.php AddDefaultCharset utf-8 RewriteEngine on Options +FollowSymlinks -MultiView...

get links in a web site

how can i get links in a web page without loading it? (basically what i want is this. a user enters a URL and i want to load all the available links inside that URL.) can you please tell me a way to achieve this ...