Python Short Url expander

i have a problem with expanding short URLs, since not all i work with use the same redirection: the idea is to expand shortened urls: here a few examples of short url --> Final url. I need a function to get the shorten url and return the expanded ur...
more »

2017-08-13 20:08 (1) Answers

laravel url rewrite with id

is there a way or package that one might be able to assist me in setting up for url rewrites per view category. I have views which only display the content when the id is passed to the url. for example www.site.com/2/12 where 2 is a category and 12...
more »

2017-08-11 23:08 (0) Answers

Load url without url change

Given I have two different application servers. One is my play application and one is another application that is running on the same server. A user opens a link in the play application that redirects to an url from the other application. public cl...
more »

2017-08-11 16:08 (1) Answers

Python script dont work on windows xp

In linux this script work without errors. But on windows scritp write json file without ] (close bracket) How to fix next error? P.S: in windows, python version 3.4.3 json.dump(obj, fp, *, skipkeys=False, ensure_ascii=True, check_circular=True, ...
more »

2017-08-11 14:08 (0) Answers

Relative path in 'file' protocol for URL

I have an implementation which reads a file and uses java.net.URL to take a path to open connection to. In production code, the link of file will be on FTP but for testing the logic I want to use a file locally which I can read using file protocol i...
more »

2017-08-11 13:08 (1) Answers

How to extract a string from URL in Swift 3?

I have a URL of a YouTube video. Now, I need to extract a string and save it to a variable. Here, I need to extract videoid from the URL. The link is: https://www.youtube.com/watch?v=iTcq6L-PaDQ Now, I need to extract iTcq6L-PaDQ in Swift 3. ...
more »

2017-08-11 07:08 (4) Answers

URI url with "&" not coping complete

Based on this post, I've managed to get this to work but whenever I pass an URL with an "&" on it, the link doesn't came all the way complete to IE. For example: http://www.example.com/products/products.asp?N=200063&Ne=500955&ref=foo%2C...
more »

2017-08-10 23:08 (0) Answers

API RESTful URL path for custom action

I have a budget entity... At some point, the app lets you create a new budget for a client. Before saving the budget you have the option of generate a preview where the total amounts based on your selections are shown. Those calculations are done i...
more »

2017-08-10 19:08 (2) Answers

Using ?table=12 in URL, woocommerce cache

I am having trouble with woocommerce. I am trying to use ?seat=12 at the end of a URL to signify seat numbers. All works fine and dandy, but when I use the same browser and try to use ?seat=13 everything looks fine up to the order actually coming thr...
more »

2017-08-10 17:08 (0) Answers

How to get the current URL in XSL

I am trying to get the URL of the webpage XSL code is operating within, at this time I can place my own URL into the code and the results return as desired but I cannot find a way to get the URL dynamically. I need to do this in order to filter the r...
more »

2017-08-10 16:08 (0) Answers

gettin posted data from search pages

Sorry, maybe the title is not really describes what I need, but I had no better idea. Please, look at this webpage: http://www.cpso.on.ca/Public-Register/All-Doctors-Search Let's make a search. In the Physician Type group box, select specialist and ...
more »

2017-08-10 16:08 (0) Answers

Djanog two project but run one admin panel

i have two djanog project, first project name is dml and second project name is survey. when i run dml project from url it works fine (http://127.0.0.1:8000/dml/admin). but when i run survey project it does not work (http://127.0.0.1:8000/survey/admi...
more »

2017-08-10 12:08 (0) Answers

How to consume URL with two '?' in retrofit

I am trying to use retrofit 2.3 in my Android App. I have following url format : www.test.com/api?url=a?response=json. How this URL will be casted to QueryParam? For first part www.test.com/api will be my base URL then @Query("url") value bu...
more »

2017-08-10 06:08 (1) Answers

iOS to get redirected URL

In my iOS project, I need to invoke a url https://myemail.mycompany.com/?qs=23263726373273ADSD892329389DFDJFHD232323 and its redirects to another URL http://redr.mycompany.com/first/location/id/next/a/. I need to get the redirected URL in my iOS code...
more »

2017-08-09 20:08 (1) Answers