Latest Questions tagged Url

Browse all latest questions tagged Url

61
Votes
Published 23 Aug, 2022
Python - python: check if url to jpg exists

In python, how would I check if a url ending in .jpg exists? ex: http://www.fakedomain.com/fakeImage.jpg thanks

122
Votes
Published 27 Jun, 2022
Python - How can I prepend http to a url if it doesn't begin with http?

I have urls formatted as: google.com www.google.com http://google.com http://www.google.com I would like to convert all type of links to a uniform format, starting with http:// http://google.com...

46
Votes
Published 09 Jul, 2022
Jquery - jQuery Youtube URL Validation with regex

I know there is plenty of question answered over here https://stackoverflow.com/questions/tagged/youtube+regex, but not able find a question similar to me. Any body has the JavaScript Regular express...

67
Votes
Published 02 Sep, 2022
Java - How to use Selenium WebDriver on local webpage (on my PC) instead of one located somewhere online?

I want to use Selenium WebDriver on a webpage that I have on my hard disc. I've tried to something like: selenium = new WebDriverBackedSelenium(driver, "C:\\...dispatcher.html"); ...instead of the...

72
Votes
Published 15 Apr, 2022
Javascript - Avoid URL parameter Manipulation

Anything on the client can potentially be intercepted and manipulated by someone interested enough. Encryption likely isn't enough if you're really worried about security because the user could examin...

156
Votes
Published 26 Apr, 2022
Python - How can I percent-encode URL parameters in Python?

If I do url = "http://example.com?p=" + urllib.quote(query) It doesn't encode / to %2F (breaks OAuth normalization) It doesn't handle Unicode (it throws an exception) Is there a better li...

2
Votes
Published 24 Apr, 2022
Python - Loading url with cyrillic symbols

I have to load some url with cyrillic symbols. My script should work with this: http://wincode.org/%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5/ I...

36
Votes
Published 26 Apr, 2022
Python - Call to operating system to open url?

What can I use to call the OS to open a URL in whatever browser the user has as default? Not worried about cross-OS compatibility; if it works in linux thats enough for me!

70
Votes
Published 08 Sep, 2022
Java - java - ignore expired ssl certificate

URL myUrl = new URL("https://www....."); SSL Certificate of website is expired. How to avoid it and make URL() work ?

468
Votes
Published 16 Apr, 2022
Javascript - Get the values from the "GET" parameters (JavaScript)

I have a URL with some GET parameters as follows: www.test.com/t.html?a=1&b=3&c=m2-m3-m4-m5 I need to get the whole value of c. I tried to read the URL, but I got only m2. How do I do this...

1
Votes
Published 13 Apr, 2022
React - React router redirect whenever there is an uppercase in URL

I want to resolve whenever there is an uppercase in the URL it needs to redirect to the URL with lowercase. I'm facing some issues with the path part finding the right regex. The regex /:url2*([A-Z...

7
Votes
Published 24 Apr, 2022
Python - Rewrite a URL with Flask

Is it possible to rewrite a URL with Flask e.g. if a POST request is received via this route: @app.route('/', methods=['GET','POST']) def main(): if request.method == 'POST': #TODO: rewri...

20
Votes
Published 01 May, 2022
Python - Get subdomain from URL using Python

For example, the address is: Address = http://lol1.domain.com:8888/some/page I want to save the subdomain into a variable so i could do like so; print SubAddr >> lol1

115
Votes
Published 16 Apr, 2022
Javascript - How to convert URL parameters to a JavaScript object?

I have a string like this: abc=foo&def=%5Basf%5D&xyz=5 How can I convert it into a JavaScript object like this? { abc: 'foo', def: '[asf]', xyz: 5 }

8
Votes
Published 14 Apr, 2022
React - How to detect change in the URL hash in Next.js?

How do we detect a change in the URL hash of a Next.js project? I don't want to reload my page every time the slug changes. I cannot use since all of my data comes from DB Example: When clicking on...