steinarb

Results 37 comments of steinarb

I can possibly borrow code from some of the examples in https://github.com/pashky/restclient.el/issues/149 ? But it would be nice to have a simpler way do do things. And it would be...

I thought something similar to this, in my .emacs, could do the trick: ``` ;; restclient from git to get restclient-jq (add-to-list 'load-path (expand-file-name "~/git/restclient.el")) (when (locate-library "restclient") (require 'restclient)...

I've made this work, with a little help from the [help-gnu-emacs mailing list](https://lists.gnu.org/archive/html/help-gnu-emacs/2022-03/msg00164.html). The first enlightenment I had was that the evaluation result of [restclient-jq-json-var-function](https://github.com/pashky/restclient.el/blob/9e2cfa86529133eba6c9ef53794be182f15e4c21/restclient-jq.el#L49) was a lambda. The second...

The sb-restclient.el file on mac looks like this ``` ;;; -*- lexical-binding: t; -*- (defun restclient-get-result-end-point () (save-excursion (goto-char (point-max)) (or (progn (re-search-backward "^GET.*" nil t) (previous-line) (line-end-position)) (point-max)))) (defun...

Ran into this one today: 302 redirect to the login page, for a REST POST call behind an [apache shiro](https://shiro.apache.org) servlet filter. The behaviour of restclient.el was to print ```...

A feature like this, would be really, really, really, neat! (Said by someone right now trying to push a multipart/form-data through, and not succeeding...)

Could be a separate package maybe? Or be included in the regular restclient package?

I'm trying to post multipart/form-data myself now, and get a similar error: ``` { "errorMessage": "Failed to parse multipart servlet request; nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadException: Stream ended unexpectedly", "cause":...

I tried moving the body of the request into a separate file (which has encoding DOS, according to emacs): ``` POST https://smelly-appsikk.somecompany.com/api/token Authorization: Bearer sha256~PAmUpODUEPPQ9FeuN3uu_f8h4XbhEsd9NqNvZIKXIbE Content-Type: multipart/form-data; boundary="----WebKitFormBoundary7MA4YWxkTrZu0gW" < ./token-request...

This is a bug, so I don't think it should be closed