url

Storing a file in the blobstore from a URL in app engine?

I want to retrieve a file form a URL like http://www.abc.com/files/file.pdf and store in the blobstore... how do I do this? Right now it only allows from form posts ... ...

Making jQuery bookmarkable (i.e - for a content slider)

I have made my own custom tabbed content script and it works great. The only thing missing is being able to book mark different sections. I know the URL needs re-writing somehow. At the moment I am using preventDefault to stop the page refreshing, this also stops the URL from changing. I have also tried manually re-writing the URL but ...

URL Validation - Accepts URLs without protocols

Hello I've a basic URL validation in my appliction. Right now i'm using the following code. //validates whether the given value is //a valid URL function validateUrl(value) { var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/ return regexp.test(value); } But right now it is not a...

pass url as string in variable to form's onsubmit target

how can i make a form tag using onsubmit (that executes upon hitting enter) which opens a target window with a given url in a string variable form? what i have so far: <div id="row2"> <!-- Intranet Search --> <form action="" onSubmit="urlGen(this);" method="get" target="_blank"> <input type="text" name="intranet" id="intranet" size...

coldfusion url decode extended ascii

This seems trivial <cfset username = urldecode(url.username, "utf-8")> Where username in the URL = %F8yvind Decoded username = �yvind How do I get the corresponding html entity: &#248;? I need to use the username as a lookup value in the db. Thanks! ...

Form over several pages - URL should remain

Hello! Don´t know if my english is sufficient to explain this right: I have made a Form that is needs 4 or 5 pages until final submit comes. On every change the Post is added to the new page as a hidden field and a new script is called. <form method="post" action="form4.php"> My problem is i dont want the browser to ...

ASP.NET - Get website's URL without HttpContext.Current (running in background thread)

Bit of a long shot, but is there a way in ASP.NET to dynamically get the website's URL (http://www.example.com) when there is no HttpContext.Current available. There is no HttpContext because the code is running in a background thread* (but under the ASP.NET AppDomain). I have a background process that sends emails out every evening, an...

how to pass arguments to url (.php file)

http://something.php?ownerID=13&amp;view=userAgreement i need to pass two variables to this .. how can i pass these i am declared ownerid to 13 in my config playlist and i am able to get it ,how to set "view = useragreement" string to view variable.... can any body show me sample code.. i am using like NSString* termsURL = [[[NSBundl...

Connect to web that requires user/password

Hi,I'm a bit new to Java and more to connections stuff with it. I'm trying to create a program to connect to a website ("www.buybackprofesional.com") where I would like to download pictures and get some text from cars (after the login you have to enter a plate number to access a car's file). This is what I have right now, but it always ...

Codeigniter isn't routing right

I installed Apache for Windows. I bought CodeIgniter Professional and downloaded their source code. It said that I should put its .htaccess in the root folder of the website so I did. I set base URL to be http://127.0.0.1/kids/ where kids is the root folder of the website. It showed the homepage just fine. When I clicked on a link, it al...

Is it preferable to preserve web application state with JSON in URL?

You could preserve web application state with JSON in URL like this: http://host/?state=[{id:1,selected=true},{id:2,selected=false}] Is this preferable? One motivation for doing something like this is if the user bookmarks the web page the web application state can be restored the next time the user visits the page. ...

Does any of you know how to mask a URL in php ? or related to Javascriptor Ajax ?

Does any of you know how to mask a URL in php?? Like the one you see in free URL redirectional services (http://www.shorturl.com) I mean I have a url like http://www.my-server.com/ which will redirect me to http://www.some-other-server.com/abc.php But I want the URL in the address bar of my browser to show only this URL http://www.my...

Codeigniter first segment URL variables

I am looking to use a URL shortening scheme where I would like the variable to be in the first segment of the URL, www.example.com/0jf08h204. My default controller is "home.php" and I have .htaccess mod-rewrites in place, so what is the best way to manage this? I suppose my smarts have been blocked by the standard /controller/method/vari...

What are the pros and cons of a default URL with www or without www?

We need to default URL to unique name. If it is www then with no prefix or vice versa. So decision to be made is either stick with www or with no prefix. With no prefix cookie is set for all sub domains. What are other downsides for it? Or benefits? Basically we need this for OpenID as OpenID will make users look different if they came...

which is better, a 404 error page or redirecting to the front page

I was under the impression that 404 redirects to the front page is considered bad. all websites should have a 404 page. But at the same time I notice alot of people in forums that want their site to redirect to front page when a 404 is called. which is better. Having a 404 error page or redirecting to the front page ...

what is the purpose of inserting + into a URL instead of space

for example if we have something like this: http://chart.apis.google.com/chart?chxl=1:|0|10|100|1,000|10,000|100,000|1,000,000|2:||++++++++++++++++++++++++++++++++++++++++++Excretion+in+Nanograms+per+gram+creatinine+milliliter+(logarithmic+scale)|&amp;chxp=1,0|2,0&amp;chxr=0,0,129.8|1,0,3&amp;chxs=0,676767,13.5,0,lt,676767|1,676767,13.5...

Is regex a good way to test a url

I'm trying to test the validity of a url entered with php5. I thought of using regex, but assuming that it works correctly all the time, it only solves the problem of the url being syntactically valid. It doesn't tell me anything about the url being correct or working. I'm trying to find another solution to do both if possible. Or is i...

How to create dynamic/friendly URLs using PHP?

Hello. Can anyone explain how to create friendly URLs? I mean URLs like http://store.steampowered.com/app/22600/ that doesn't have any pages like index.php visible. Any help is appreciated. Thanks. ...

How to retrieve original URL from a redirected one using Yahoo Pipes?

I've parsed a feed using Yahoo Pipes. The feed items contain an URL link to the full-text versions. URLs are redirected (cloaked). How can I retrieve them using Yahoo Pipes and replace the redirected ones with original URLs? There seems to be a way: http://stackoverflow.com/questions/1970606/yahoo-pipes-possible-to-retrieve-get-real-u...

Calling cgi.FieldStorage for an arbitrary url

Hi! I'd like to get field values corresponding to an arbitrary URL. I.e. given "http://example.com/hello?q=1&amp;b=1" I want a dictionary {'q':1, 'b':1}. How do I use cgi.FieldStorage for that? Thanks! ...