url

How to Pass byte array as parameter in url in iPhone?

I am using following code to get bytes array. thx to this post. Data *data = [NSData dataWithContentsOfFile:filePath]; NSUInteger len = [data length]; Byte *byteData = (Byte*)malloc(len); memcpy(byteData, [data bytes], len); it is the right method to do so? Now, How i can pass bytes array into url? Thank You for Help, ...

Create a RESTful url for a php script

Hello, I have a php script on a webserver. Currently, the script is being accessed as http://www.mydomain.com/scriptname.php . Is there a way i can create a user friendly url for accessing this script, something like http://www.mydomain.com/appname, so when this url is called it invokes the php script ? Please help. Thank You ...

redirect file to an url for streaming

I am setting up my hi-fi to stream music from my PC. The hi-fi can see all of the files in my music folder, but I want to be able to stream across the audio I am currently playing. The hi-fi however does not have support for this. So I've found a .dll that wraps directsound and offers it streaming as a continuous mp3 file on my PC from ...

To receive URL after change

After authorisation on www.vkontakte.ru through ie8 me spans on page: www.vkontakte.ru/MyPage. But I cannot receive www.vkontakte.ru/MyPage through a code HttpWebRequest authRequest = (HttpWebRequest)WebRequest.Create(new Uri("http://vkontakte.ru/login.php", UriKind.Absolute)); authRequest.CookieContainer = new CookieCon...

how to resize image from url and make the size of the image smaller

Hello all, I have a joomla website with the virtuemart module. What I have are images and thumbnails which are hosted on a other domain. Virtuemart gives me 2 options: 1 - browse for image, a thumbnail will be automaticly created 2 - enter a URL for a image which is external hosted, this option doesn't have a resize option The way ...

Appending parameters to POST form url

Hi, I am currently trying to code a link so I do not need to enter the values everything I need to check for my registered mails. Example here is http://singpost.com/ra/ra%5Farticle%5Fstatus.asp where u need to type RR624613237SG into the box to get the information <INPUT type=submit class=buttons name=go value="Track" on...

how can i determine if anything at the given url does exist

how can i determine if anything at the given url does exist in the web using python? it can be a html page or a pdf file, shouldnt be matter. ive tried the solution written in this page http://code.activestate.com/recipes/101276/ but it just returns a 1 when its a pdf file or anything. ...

Yahoo OAuth callback URL

I am trying to connect with Yahoo OAuth. When I specify the callback URL to be example.com/YahooOauth.aspx everything works fine. But when I specify example.com:2358/YahooOauth.aspx, that is, add a port it does not work. My Yahoo application URL is example.com:2358. What can the problem be? ...

Script URL cross site confusion

If i have a script that uses an absolute URL for a script on another website, on which the script say clicked a link what would happen? would a referrer be sent to the destination of the link, and if so would it be from the original site, or from the site where the absolute Url of the script is located? Im sorry if this is confusing, as ...

CodeIgniter Route Problem with Regex

Hey guys, I have got a little problem using the CodeIgniter route function. I use the URI_Language_Identifier extension and I want to reroute all the requests for "lang/login" (e.g. en/login or de/login) to user/login I tried to use the routes function as follows, but it does not work: $route['(\w{2})/login'] = "/user/index"; this ho...

Problem encrypting/encoding URL variable

I have a class that takes a string in this format: 000067000000000012620060324b38e2cab3353 , encrypts the string then appends it as a get variable in a URL. The class that does the encryption has a function that looks like this: private function _code_encryption($enc_type,$a_string){ $iv_size = mcrypt_get_iv_size(MCRYPT_RIJND...

subversion url redirect

I couldn't figure out how to do a repository url redirect in Svn... Here is a scenario: For SVN server we use Visual SVN, for clients mostly Tortoise SVN. We create a branch each time we do a production source rollover. Then the url looks like this: http://svnserver.blabla.com/branches/8%5F3%5F0%5F0/development ... next time will be ...

MySQL > JSON, Causing errors with URL's

I have this code converting a mysql query to json: $sth = mysql_query('SELECT * FROM `staff` ORDER BY `id` DESC LIMIT 20') or die(mysql_error()); $rows = array(); while($r = mysql_fetch_array($sth)) { $rows[] = $r; } print json_encode($rows); Works great, but i have in my database, a url field, here is a sample json row: {"0":"4"...

Properly Matching a IDN URL

I need help building a regular expression that can properly match an URL inside free text. scheme One of the following: ftp, http, https (is ftps a protocol?) optional user (and optional pass) host (with support for IDNs) support for www and sub-domain(s) (with support for IDNs) basic filtering of TLDs ([a-zA-Z]{2,6} is enough I thi...

URI manipulation in .NET compact framework

What's the best way to manipulate URIs in .NET compact framework? I basically need to load up a URL string, then allow the user to change the "Scheme" and "Host" values. I've been using the Uri class so far, but it's essentially immutable, so you can't really modify any of the components of the Uri, once it's initialized. The UriBuild...

HTML forms - input type submit problem with action=URL when URL contains index.aspx....

I have a HTML form that truncates the action parameter after the "?" mark - which is NOT the desired behavior I am looking for. Here is a representative HTML snippet: <form action="http://spufalcons.com/index.aspx?tab=gymnastics&amp;path=gym"&gt; <input type="submit" value="SPU Gymnastics"/> </form> In this case, the submit butto...

Encoding URIs with foreign characters

I want to display characters like "é,ë,ñ,עברית" as is in the urls. How can I do that? When I type something like "page.php?name=é" it turns the url into "page.php?name=%E9", not what I desire. There seems to be a problem with .htaccess when rewriting the url, it would just output error message. How can I fix it? (this is the rule btw): ...

URLWithString: returns nil

Hi, it may be very easy, but I don't seems to find out why is URLWithString: returning nil here. //localisationName is a arbitrary string here NSString* webName = [localisationName stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSString* stringURL = [NSString stringWithFormat:@"http://maps.google.com/maps/geo?q=%@,Mon...

asp.net mvc url routing

i have a classic web project and i want to use asp.net mvc url routing just for rewrite url. is it possible without make much changes to my web project? ...

How can I extract HTML img tags wrapped in anchors in Perl?

I am working on parsing HTML obtain all the hrefs that match a particular url (let's call it "target url") and then get the anchor text. I have tried LinkExtractor, TokenParser, Mechanize, TreeBuilder modules. For below HTML: <a href="target_url"> <img src=somepath/nw.gf alt="Open this result in new window"> </a> all of them give ...