Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Lee Hinman
    @dakrone
    Welcome anyone that joins this, feel free to leave any comments, questions, or feedback!
    bren-do
    @bren-do
    Hello Dakrone, I made a PR to add support for trust-managers and key-managers on the clj-http client. There are plenty of details on why I wanted to add support for this in the PR, but the main reason is clj-http doesn't support Public Key Pinning in its current state. Public Key Pinning is only possible through a TrustManager object. I added KeyManager support as well. I hope this is in line with the goals of the clj-http project and please let me know if there's anything I can do to help the review process.
    bren-do
    @bren-do
    looks like seqable? is only available in 1.9. Will have to figure out an alternative.
    Johannes Barre
    @iGEL

    @dakrone Hi! I have a problem with server. It seems like it sets a invalid expires date for cookies. But I don't care about cookies at all, so I'd like to disable them. I've tried to set cookie-policy :stardard, :decode-cookies false like this:

    (http/get "https://weird-server.com/xxx"
              {:headers {"Authorization" (str "Bearer " (oauth/access-token customer)) "Accept" "application/json"} 
               :cookie-policy :standard
               :decode-cookies false})

    But I still get this error:

    Jan 24, 2019 8:59:54 AM org.apache.http.client.protocol.ResponseProcessCookies processCookies
    WARNING: Invalid cookie header: "Set-Cookie: AWSALB=yeI6afsm20DftEpS4SpcSkbb/smrOHRsAmGFjGpV5mfe3twWeJ/nql+L/Nsyh56reO8CmoHn4U/AaujB2hKlNdvaU6yU2oT9aWSsxYHzVC1CyVrulaRUNvJsXmjx; Expires=Thu". Invalid 'expires' attribute: Thu
    Johannes Barre
    @iGEL
    Never mind, I just missed one request! All good
    Jacob Emcken
    @jacobemcken
    I'm trying to replicate behavior from curl specifically: curl -G 'http://localhost:8086/query?db=mydb' --data-urlencode 'q=SHOW DATABASES' (needed for interfacing with InfluxDB - a time series database)
    Using Ncat (nc) I can see the output of curl where the body gets encoded.
    ups locally I've been using XPOST instead of G :open_mouth: :blush: ... need to check again
    Jacob Emcken
    @jacobemcken
    I'm still wondering why curl encodes the space as %20 while clj-http encodes it with a +...is this important?
    I'm afraid that my lack of understanding might trip me later down the road as the requirements to the application expands
    skall
    @skallet
    Hi, is there any way to set local address which HTTP requests will use? Something like: (http/get URL {:local-address "IPv4"})?
    Ali Raheem
    @ali-raheem
    Is there a way to get the body of the post data? I need it before I send the query to put a hmac in the headers
    Ali Raheem
    @ali-raheem
    It'd be nice to be able to encode like :form-params but I can't seem to find where that happens in the code base
    Ali Raheem
    @ali-raheem
    Ah found client/generate-query-string seems to do what i need
    Dave NeSmith
    @djnesmith
    hi there! i am getting some org.apache.http.conn.ConnectionPoolTimeoutExceptions on long POST requests. We send a bunch of these requests out from one API call that calls another. Is there a way to increase the global connection pool? I see you can have your own connection manager, but I not sure if that will help when we are just making a single call for the client. We are not making a bunch of calls in one wrapped function.
    Dave NeSmith
    @djnesmith
    actually i am trying out the connection manager from the make--reusable-conn-manager fn. not sure what the best settings are here for my particular problem. i have one API that calls another, and that other API can take 20 seconds or longer. Meanwhile I get a bunch of connections getting ConnectionPoolTimeouts because there is no more room in the pool. are there some settings I can tweak for this scenario?