All Questions
Tagged with url-encoding or urlencode
3,456 questions
1
vote
0
answers
86
views
Invoke-WebRequest URL encoding
I want to retrieve content from web page. However, I tried above method but the error still come when the query string contain Chinese character.
code
$json = Get-Content -Encoding utf8 -Path "./...
-1
votes
0
answers
63
views
AWS API Gateway HTTP API v2 removes padding (`=`) from query parameters when calling Lambda (Java Spring Boot)
I’m using AWS API Gateway HTTP API v2 with a Lambda function running a Java Spring Boot application
The integration type is Lambda proxy integration with payloadFormatVersion: 2.0.
Everything works ...
0
votes
0
answers
48
views
Why does JAX-RS UriBuilder not double encode
Consider this method:
import javax.ws.rs.core.UriBuilder;
import java.net.URI;
public class AnyParamRedirecter {
/**
* Generate a URI to target.com with one query parameter "...
0
votes
0
answers
85
views
Normalize URLs which might be encoded or not
I have an app where users enter WebDav URLs. In some cases, these URLs are properly encoded, but in some cases they are not.
String[] testUrls = {
// Plain, unencoded
...
0
votes
1
answer
166
views
Google Calendar cid=<ICS URL> shows “Unable to add calendar. Check the URL.” — but the same ICS works via “From URL”
I’m trying to give users a one-click Add to Google Calendar link using the documente pattern:
https://calendar.google.com/calendar/r?cid=\<URL-ENCODED_ICS_URL>
However, Google consistently ...
1
vote
1
answer
124
views
How to URL Encoding in swift
I want to encode url with percent encoding.
If the value of query parameter is url type, how can I encode?
let urlString = "https://www.google.com/path1?param1=https://www.apple.com/path2?param2=...
0
votes
2
answers
89
views
Percent encode HTML form [closed]
I have a html form - method="get" is obligatory in my case :
<form action="https://websiteurl.com/searchresult" method="get" id="bookingform">
<input ...
2
votes
1
answer
122
views
Keep the '+' in URL in python
I have an input which is a decoded URL and can contain incorrectly escaped '+' symbols, such as 'http://example.com/path/tofile?query=param+with+questionmark', where '+' symbols should be converted to ...
0
votes
1
answer
37
views
Google Search Console export not giving the same URL
I'm going through a list of URLs that google have tried to index that gives 503. We have fixed a number of these, and I wanted to go through the list to test which are still left.
However, I ...
0
votes
1
answer
302
views
PayFast signature (python): generated signature does not match submitted signature
I am trying to submit a PayFast payment using the API tools, in python rather than php (the docs recommended approach).
I am generating a signature like so:
import hashlib
import urllib.parse
def ...
1
vote
0
answers
79
views
Can a data URL safely encode binary using a character set beyond base64 without requiring percent-encoding?
The context is for a data URI (now known as data URL) to be dropped into an Apple API. It is not for a data URI that would be consumed by a browser.
I am interested in using base91 or base85 to get ...
0
votes
1
answer
132
views
WSO2 APIM Returns 404 if Special Characters in the URL
We have a web application calling APIs via WSO2 APIM. We have an API that GETs an object by ID. So the URL is something like https://api.example.com/my-api/v1/foo/{id}. This works fine if the ID ...
0
votes
0
answers
59
views
Should or shouldn't I urlencode umlauts in links?
I want the URL to my German about-me page to be über-mich (German for "about me"):
http://www.my-website.de/über-mich
This works fine if the filename contains an umlaut:
index.php
robots....
2
votes
0
answers
100
views
Java Construct URI given full string
I am trying to create a java.net.URI (for use with spring RestTemplate) but I'm given a FULL url and I need to correctly encode things.
Every example I see online, including using the Spring ...
0
votes
2
answers
45
views
Android Retrofit Post Data Type to Server States Data Is Null
I am trying to pass a data model to a server in Android using Retrofit to register user account. When I send the data type of UserData to the server via POST, I get an issue. HTTP 500 stating the ...
0
votes
1
answer
85
views
space in url giving file not found error in browser
Physical folder having space: /about us/contactus.php
when we enter in browser https://www.example.com/about us/contactus.php
It will auto convert URL to https://www.example.com/about%20us/contactus....
0
votes
1
answer
139
views
What is the correct way to include the CONTAINS keyword in a compound query request to the SendGrid Email Activity Feed API?
Current state... Each morning, we log into SendGrid, do an advanced search, and export the results. An example of the search (typed as it would appear on the screen)...
Dates Between 2025/01/02 - ...
2
votes
1
answer
66
views
Django request.GET adds and extra quote to the data
When I pass my parameters via Django request.GET I get an extra comma in the dictionary that I do not need.
Encoded data that I redirect to the endpoint:
/turnalerts/api/v2/statuses?statuses=%5B%7B%...
0
votes
2
answers
97
views
Turning globbing off in Jmeter
I'm trying to send a GET request that has bracket characters ('[]', '{}') in the query parameters which makes JMeter (v5.6.3) think I am trying to use globbing. I have been testing my API using ...
0
votes
1
answer
188
views
Zsh Function to Open Google Chrome with Search Query Opens Incorrect URL
I'm attempting to create a Zsh function on macOS that opens Google Chrome in a new tab. The function should:
Open a new blank tab when called without arguments.
Perform a Google
search when provided ...
0
votes
0
answers
51
views
Add Rule To .htaccess File To Allow Space In Url
I am using a php script file "oAuth.php" to handle google and ms oAuth. ms is working very fine. as it passing following example values to return url:
https://MyDomain.ext/oAuth.php?code=M....
0
votes
2
answers
52
views
Python urldecode urlencoded bytecode data
Payload contains an HMAC tag as well as a nonce for AES. Client-side printing the tag and nonce result in (for example):
#tag: b'=x\x9d{_0\xf9;c8\x94inc]\xb1'
#nonce: b'\x1f\xf4\xbe\xcc\xf2\x84f\xf2*...
0
votes
0
answers
61
views
Why does .Net ContentDisposition encode this filename incorrectly?
This is a very niche event, which occurred once in over 10,000 submitted filenames. However, the following code generates what looks like an invalid ContentDisposition:
var fileName = "...
-2
votes
1
answer
62
views
find <> -exec curl ... for ftp file upload having problem with url encoding, for filenames with random characters
Use case:
I am trying to copy data/everything from my android mobile to laptop on same wifi, maintaining directory structure. I know there are tons of methods, but I love to do it this way (below) and ...
0
votes
1
answer
63
views
/ in parameter which will be passed in url
I am facing issue when I pass a parameter which contains / in it; the url will assume as separate route and eventually request fails.
For example - this is my endpoint:
http://domainname/...
2
votes
1
answer
187
views
Differences between Firefox and Chromium JavaScript URL validation with new URL()
I'm trying to validate URLs in JavaScript and according to MDN JavaScript's URL API is compatible with Chromium browsers and Firefox. However the behaviour varies between the two engines. Specifically ...
2
votes
2
answers
364
views
Viber double encoding urls which contain Cyrillic symbols
Recently customers reported that they cannot open our links when we share them on Viber and only on iOS. They get redirected to 404 page. I started checking what is the issue and I noticed that for ...
2
votes
2
answers
114
views
Limit a query argument to a maximum length
I have a form in which the user can enter a string into a textarea. This string will then be used as a query argument in an api call to an external service.
The service has a limit for the lenght of ...
0
votes
1
answer
67
views
Percent encoding shouldn't show after the deeplink is executed using Swift for iOS
I've the following string (please pay attention the string has "&")
let text = "By submitting, I confirm that I am an American, above 18 yrs of age & residing in America. I have ...
1
vote
1
answer
461
views
Spring Cloud Gateway. using + (plus) in the value of a query parameter
We are using Spring Cloud Gateway (MVC version) in front o a Rails service (let's call it mailbox) and are struggling when the value of a query parameter includes the + (plus) character. Here is an ...
-3
votes
1
answer
80
views
Program works in Eclipse, but not as a jar [closed]
My compiler is set to be compliant with java 1.8. When I run my code, it works and there are no warnings.
When I go to export everything as a runnable jar and execute it, it throws this error:
...
1
vote
1
answer
227
views
Wrong URL encoding supplied to Axios
This is where I'm doing the encoding before sending the GET request with Axios:
const myOrg = await fetchMyOrg();
const response = await api.get<Resp<Asset>>('/asset/assets', {
headers: ...
1
vote
1
answer
105
views
Forward slash in Data retrieval using Web API and curl
I have a list of microRNA family names among which some are named in the form of "miR-10-5p". However, some microRNA family names have forward slash in them, e.g., "miR-1-3p/206". ...
1
vote
0
answers
323
views
Spring Cloud Gateway Encoded Slash Issue After Upgrade
I just recently updated my Spring Cloud Gateway that I use as a proxy to other Microservices to java 21 (upgraded from java 8), Spring 3.2.. (upgraded from 2.7.3) and Spring cloud 2023.0. (upgraded ...
1
vote
1
answer
138
views
useLocation hook have bugs when I reload page
I use useLocation to get data from url, first time it worked fine. But when I reload page, string search of location will contain encode string.
Is this what the useLocation hook does?
first load
...
0
votes
1
answer
94
views
How can I encode url with OkHttp in kotlin?
I am trying to get historical Bitfinex candle data via public API endpoint provided bt Bitfinex. Trying to use OkHttp in kotlin but continuesly getting empty result. I guess it is encoding problem but ...
-1
votes
1
answer
392
views
How to encode/decode a URL string in TMS WEB Core using Delphi?
In my FireMonkey Apps, I can simply add the System.NetEncoding unit to my uses list and then use the TNetEncoding.URL.Encode() and TNetEncoding.URL.Decode() functions, but the System.NetEncoding isn't ...
0
votes
1
answer
103
views
How to fix URLEncoder related issues?
I am having issues with my URL encoder, it is working locally and on stage, but not working on live.
I am using filters to get brand names, but some of those brand names have spaces. When I send a ...
1
vote
0
answers
117
views
How to encode parameters for AWS API Gateway (HTTP API)?
I am building an HTTP API in AWS Gateway, and I can't understand how to encode the path parameters.
The documentation says
API Gateway decodes URL-encoded request parameters before passing them to ...
0
votes
0
answers
329
views
How can I target multiple URLs, using a single form and keyword?
I am trying to create something (basically a search engine, more or less), where I can enter a keyword into the search box, and that keyword will be implemented into several predefined URLs, and open ...
0
votes
1
answer
71
views
How to encode a MultiIDict in werkzeug 3.0
I see url_encode no longer is available in Werkzeug 3.0.
Replacing it with urlencode from urllib.parse won't work with lists e.g.
>>> from werkzeug.datastructures import MultiDict
>>>...
1
vote
1
answer
176
views
Replace question mark in URL using .htaccess
I have some files that exist under a directory and its name contains a question mark.
I'm trying to replace the ? with %3F (URL encoded ?) but I get a "404 Not Found" response. Numbers in ...
1
vote
1
answer
210
views
Files with special characters in their file name load locally but not live
I converted a Drupal website to a static site using sitesucker (Mac tool). I am running MAMP 6 locally. Some images are missing live, probably because of an encoding issue.
For instance, I have this ...
0
votes
1
answer
110
views
Cannot match any routes. for encoded url
In angular I have route path as a '/friends/message/:key/:type', for which I have a component MessageComponet
for this, I tried path '/friend/messages/NzY4OQ==/inbox'
ideally, it should navigate me to ...
1
vote
1
answer
199
views
Routing encoded url in angular
In my angular project i have a route as a
path: 'friend/messages/:encryptedKey/:type',
component: EncryptedRouteComponent,
canActivate: [AuthGuard],
,
path: '**',
component: ...
0
votes
1
answer
100
views
Querying postgrest with httpx
Consider the first "Operator Modifiers" example from https://postgrest.org/en/stable/references/api/tables_views.html#operator-modifiers:
curl "http://localhost:3000/people?last_name=...
0
votes
1
answer
385
views
Result of encodeURIComponent not being decoded correctly on server-side
I'm struggling to correctly encode/decode a JSON string for sending via query string in a GET request.
<html>
<head>
<script type="text/javascript">
...
0
votes
1
answer
304
views
TextLocal SMS Gateway API using PHP without rawurlencode
I am sending SMS using TextLocal.in API but this is how it looks because of line breaks in my SMS template.
It looks like this:
Please take a look at the contents of the $message variable. If I even ...
0
votes
4
answers
860
views
How to url-encode UInt8Array in JavaScript?
How can I urlencode a UInt8Array in JavaScript? using encodeURIComponent does not work, for example with
encodeURIComponent((new Uint8Array([72,101,108,108,111,32,87,111,114,108,100])));
I expected:
...
-1
votes
2
answers
107
views
When a browser opens a URL with params it hangs and Java App (using UrlRewrite) throws RequestRejectedException: the URL contained ";"
There is a Java, Spring, Tomcat webapp.
One part is responsible for sending activation emails to the newly created users with generated activationUrls (consisting of unique tokens). The email is ...