Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- express$ curl -vvv -o mytst_jpg.jpeg http://localhost:3000/files/https%3A%2F%2Fs3.amazonaws.com%2Fyayatv-dev%2F3c6429451c4c3af2d8e18085f957e612_image.jpeg/https%3A%2F%2Fs3.amazonaws.com%2Fyayatv-dev%2F3c6429451c4c3af2d8e18085f957e612_image.jpeg
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 127.0.0.1:3000...
- * TCP_NODELAY set
- * Connected to localhost (127.0.0.1) port 3000 (#0)
- > GET /files/https%3A%2F%2Fs3.amazonaws.com%2Fyayatv-dev%2F3c6429451c4c3af2d8e18085f957e612_image.jpeg/https%3A%2F%2Fs3.amazonaws.com%2Fyayatv-dev%2F3c6429451c4c3af2d8e18085f957e612_image.jpeg HTTP/1.1
- > Host: localhost:3000
- > User-Agent: curl/7.68.0
- > Accept: */*
- >
- 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Mark bundle as not supporting multiuse
- < HTTP/1.1 200 OK
- < X-Powered-By: Express
- < Date: Sun, 03 Oct 2021 20:53:35 GMT
- < Connection: keep-alive
- < Keep-Alive: timeout=5
- < Transfer-Encoding: chunked
- <
- { [1657 bytes data]
- 100 321k 0 321k 0 0 164k 0 --:--:-- 0:00:01 --:--:-- 164k
- * Connection #0 to host localhost left intact
- rob@sample-node-express$ curl -vvv -o mytst_jpg.jpeg http://localhost:3000/files/https%3A%2F%2Fs3.amazonaws.com%2Fyayatv-dev%2F3c6429451c4c3af2d8e18085f957e612_image.jpeg/http%3A%2F%2Flocalhost%3A1337%2Fparse%2Ffiles%2Fpictur.jpg
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 127.0.0.1:3000...
- * TCP_NODELAY set
- * Connected to localhost (127.0.0.1) port 3000 (#0)
- > GET /files/https%3A%2F%2Fs3.amazonaws.com%2Fyayatv-dev%2F3c6429451c4c3af2d8e18085f957e612_image.jpeg/http%3A%2F%2Flocalhost%3A1337%2Fparse%2Ffiles%2Fpictur.jpg HTTP/1.1
- > Host: localhost:3000
- > User-Agent: curl/7.68.0
- > Accept: */*
- >
- 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0* Mark bundle as not supporting multiuse
- < HTTP/1.1 201 Created
- < X-Powered-By: Express
- < Date: Sun, 03 Oct 2021 21:58:20 GMT
- < Connection: keep-alive
- < Keep-Alive: timeout=5
- < Transfer-Encoding: chunked
- <
- { [192 bytes data]
- 100 181 0 181 0 0 73 0 --:--:-- 0:00:02 --:--:-- 73
- *** json response from the destination service's API ***
- {"url":"http://localhost:1337/parse/files/067nHFWHCzs3KbPdyM6DxIGlszj5VFLnkX6uMrc7/a5a25817ec7290cb01f6b679dd7a6a2b_pictur.jpg","name":"a5a25817ec7290cb01f6b679dd7a6a2b_pictur.jpg"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement