Comments (4)
XML in the url? An interesting choice.
Maybe you need to url escape the string before making the request?
from http-kit.
@IliasDeros Hi Ilias! @harold is correct. As the error message indicates:
Illegal character in query at index 67
So you've got an illegal character at position 67 of your string. The 67th character is \<
, which isn't a valid URL character.
The typical way to use a URL like this, is via URL encoding - like your browser example.
The same link above should also give some pointers re: URL encoding.
Hope that helps, cheers! :-)
from http-kit.
Thanks for the help!
✅ Solved with URL encoding:
(println "Response:" @(http-kit/get (str "https://production.shippingapis.com/ShippingAPI.dll?API=Verify&XML="
(java.net.URLEncoder/encode (str "<AddressValidateRequest USERID=\"" userid "\">"
"<Address ID=\"0\">"
"<Address1 />"
"<Address2>" line1 "</Address2>"
"<City />"
"<State />"
"<Zip5>" zip "</Zip5>"
"<Zip4 />"
"</Address>"
"</AddressValidateRequest>")))))
;; Response
;; Received fatal alert: handshake_failure
from http-kit.
Note: In case anyone stumbles upon this thread, I resolved that handshake_failure
using the following base docker image change:
# Dockerfile
FROM amazoncorretto:8-alpine3.17-jdk
# Instead of: FROM eclipse-temurin:8-alpine
from http-kit.
Related Issues (20)
- CURL and finagle failing to parse :set-cookies with '\n' HOT 13
- Unix socket benchmark HOT 1
- It will turn headers into camel format HOT 2
- logger-warn gets rebound HOT 1
- logger-warn and error-warn are passed in wrong order to HttpServer constructor HOT 1
- Requests which throw java.net.ConnectException may actually succeed HOT 3
- Request Map doesn't contain information about authority HOT 8
- http-kit v2.8.0-RC1 HOT 1
- http-kit v2.8.0 final HOT 1
- Consider adding `Content-Type: text/plain` to HTTP 500 response in `org.httpkit.server.HttpHandler#run` HOT 6
- v2.7.0 SNI change broke connections to plain IP addresses with SSLHandshakeException "Hostname or IP address is undefined." HOT 8
- Add options for encoding nested form and query params a la clj-http HOT 7
- WebTransport support HOT 2
- NoSuchMethodError on projects AOT'd on java 21 but run on earlier java versions HOT 13
- [Proposal][Client] Consider more idiomatic bridges with JVM async paradigms HOT 5
- "Unmasked client to server frame" causes 502s HOT 9
- [client][performance] Regression after #446 HOT 3
- Add updated WebSocket examples to Wiki HOT 4
- documentation needs cleaning up and centralizing (was -> footnote link for API docs / run-server is wrong) HOT 2
- Possible native memory leak HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http-kit.