What is the difference between a URI, a URL and a URN?

People talk about URLs, URIs, and URNs as if they're different things, but they look the same to the naked eye. What are the distinguishable differences between them?

Which characters make a URL invalid?

Which characters make a URL invalid? Are these valid URLs? example.com/file[/].html http://example.com/file[/].html

What is the semicolon reserved for in URLs?

The RFC 3986 URI: Generic Syntax specification lists a semicolon as a reserved (sub-delim) character: reserved = gen-delims / sub-delims gen-delims = ":" / "/" / "?" / "#" / "[" / "]" /...

What characters must be escaped in an HTTP query string?

This question concerns the characters in the query string portion of the URL, which appear after the ? mark character. Per Wikipedia, certain characters are left as is and others are encoded...

Resolving relative URLs in JavaScript

I'm building a JS library which has a requirement of looking at form[action] and a[href] values and resolving them into absolute URLs. For example, I'm on http://a/b/c/d%3Bp?q and encounter an...

What is RFC3986?

What is RFC3986? In reference to the answer of my question https://stackoverflow.com/questions/6703749/why-internet-explorer-does-not-support-hash-anchor-bookmark-along-with-queryst

Node.js URL-encoding for pre-RFC3986 urls (using + vs %20)

Within Node.js, I am using querystring.stringify() to encode an object into a query string for usage in a URL. Values that have spaces are encoded as %20. I'm working with a particularly finicky...

QuickBooks Online querying with filter returns 401 everytime

I've had success creating objects with POST and Content-Type application/xml I've also had success querying using Content-Type application/x-www-form-urlencoded with a blank request body which...

C / Youtube API Request > VLC

I'm trying to improve my tiny C application which streams YouTube videos. For some reason I'm not being able to send request and decode JSON. Could someone point me in the right direction, this is...

Is a URL with // in the path-section valid?

I have a question regarding URLs: I've read the RFC 3986 and still have a question about one URL: If a URI contains an authority component, then the path component must either be empty or begin...

WCF web service discovery on network interfaces with multiple IP addresses

I'm trying to do a webservice discovery using WCF's DiscoveryClient using this code: // Setup the discovery client (WSDiscovery April 2005) DiscoveryEndpoint discoveryEndpoint = new...

Is Java's URI.resolve incompatible with RFC 3986 when the relative URI contains an empty path?

I believe the definition and implementation of Java's URI.resolve method is incompatible with RFC 3986 section 5.2.2. I understand that the Java API defines how that method works, and if it were...

'+' (plus sign) not encoded with RestTemplate using String url, but interpreted as ' ' (space)

We are moving from Java 8 to Java 11, and thus, from Spring Boot 1.5.6 to 2.1.2. We noticed, that when using RestTemplate, the '+' sign is not encoded to '%2B' anymore (changes by SPR-14828). This...

HTTP Basic Authentication in URL supported or deprecated

On a project we spent considerable effort to work around basic authentication (because webdriver tests were depending on it, and webdriver has no api for basic authentication), and I remember...

What is correct way to use cProfile with asyncio code?

I'm trying to determine how to correctly use cProfile and pstats with asyncio code. I am profiling my script by running cProfile.run('loop.run_until_complete(main())', 'profile.stats'). After...

How to properly create HTML links in PHP?

This question is about the proper use of rawurlencode, http_build_query & htmlspecialchars. Until now my standard way of creating HTML link in vanilla PHP was this: $qs = [ 'foo' =>...

Semantic error at paths./MyType.get.responses.200.schema.$ref $ref values must be RFC3986-compliant percent-encoded URIs

I have an OData api and I enabled swagger for that. When I paste the json information of my OData api in "editor.swagger.io" then it gives me the error : (Semantic error at paths ...

Delphi TOAuth1Authenticator how to set the Realm

Trying to use/call a NetSuite Restlet with token based authentication using the Delphi RESTClient. I have a working Postman request that verifies all the authorization parameters required. The one...

AttributeError: module 'django.db.models' has no attribute 'JSONField'

Following Django 3.1 guidelines for JSONField for all supported database...

TF object detection API detection model retraining: "object_detection.protos.TrainConfig" has no field named "fine_tune_checkpoint_version"

I'm retraining ssd_mobilenet_v2_coco_2018_03_29 using Tensorflow Object Detection API and I get this particular error on both Windows and Ubuntu environments. My environment below is Windows 10...

KeyError: 'requestContext', FastAPI, Mangum, Serverless

I am trying to use Serverless Framework to deploy a Python Fast API WebApp. Is is related to issue: https://github.com/jordaneremieff/mangum/issues/126 When I deploy it using serverless, sls depoy...

URI and double slashes

java.net.URI.create("localhost:8080/foo") // Works java.net.URI.create("127.0.0.1:8080/foo") // Throws exception java.net.URI.create("//127.0.0.1:8080/foo") // Works Is double slash...

Failing to start FastAPI server, error in asyncpg

EDIT: turns out there was quite a few different errors. If you run into similar problems, you probably misconfigured something in your database - like exposing wrong port somewhere along the...

ModuleNotFoundError: No module named <module_name>

Looks these two modules are installed: [email protected]:~$ pip3 list |grep -i ezgmail EZGmail 2020.9.29 [email protected]:~$ pip3 list |grep -i twilio twilio ...

Error of rasa and rasa X intallation and running the local server

I have installed rasa on Max OSX and this output on the terminal: python3.8 -m pip install rasa Collecting rasa Using cached rasa-2.2.2-py3-none-any.whl (688 kB) Processing...

Requests fail authorization when query string contains certain characters

I'm making requests to Twitter, using the OAuth1.0 signing process to set the Authorization header. They explain it step-by-step here, which I've followed. It all works, most of the...

`ERR_HTTP2_PROTOCOL_ERROR` when pipe character (|) in GET request query parameter in Wildfly 21

We've recently migrated a Spring REST application from *Wildfly 15.0.1.Final* to *Wildfly 21.0.0.Final* which apparently introduced an issue with GET requests: whenever we have a | (pipe)...

I get 'AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel' when trying to build a Docker image of a python app

I am trying to build a docker image of a python application. It fails with the following error: "Installing build dependencies: finished with status 'done' Getting requirements to build wheel:...

PIP install rasa-x is not working and pip downgrade too

I have exactly the same problem as mentioned in https://stackoverflow.com/questions/65806524/pip-install-rasa-x-takes-forever. In the Rasa installation guide they say, you have to create an...

Spring boot and springfox-swagger2 - $ref values must be RFC3986-compliant percent-encoded URIs - Solution provided

If you’re using the springfox-swagger2 library, you might come across a problem when it comes to generic types. In cases where diamond brackets are used, Swagger will generate an invalid...