All Questions
12 questions
0
votes
1
answer
389
views
How could I send a curl output straight to an Azure Storage?
I'm trying to send downloaded files using bash using a curl request:
for secao in $tipo_dou;
do
download="curl -k --silent -fL -b cookies.iakim 'https://inlabs.in.gov.br/index.php?p=$ano-...
0
votes
1
answer
217
views
Execute curl command in nodejs
curl -i --upload-file ~/Downloads/tree-736885__480.jpg -H 'Authorization: Bearer token' "uploadURL"
I have above curl command i need to execute this in nodejs. how can i trigger this ?
i ...
0
votes
1
answer
179
views
Handle "@" sign in proxy password
I'm making a curl request using a proxy. Let's say:
proxyUsername = "username"
proxyPassword = "p@ssw3rd"
proxyHost = "myproxy.node-a.io"
proxyPort = "11115"
...
5
votes
1
answer
857
views
Curl - different result in node (child process) and terminal
So I accidentally found something weird and can't figure out why is it.
I make this curl in my terminal (which is ZSH on iTerm):
curl -I https://geocode.arcgis.com/arcgis/rest/services/World/...
1
vote
1
answer
2k
views
SyntaxError: Unexpected token ' in JSON at position 0
const express = require("express");
const bodyParser = require("body-parser");
const app = express();
const fs = require("fs");
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser....
0
votes
1
answer
75
views
Node Js server sends 100 response
I am uploading a file and executing a script on Node.js server, but the whole process takes a lot of time. Before the process is complete, the server sends response 100 on its own.
So Node.js server ...
38
votes
6
answers
159k
views
Linux Bash: How to open a websocket connection as client
I have created a Node.JS application that provides a web socket server (using npm ws). This websocket waits until a connection is established. Once a connection hits the server, the websocket executes ...
0
votes
2
answers
2k
views
How can I make this request in nodejs(status 415)?
I was using bash to do a task. And had some mess while trying to parse the response. Now I am using nodejs for the task. But I get following error:
"httpStatus" : 415,
"messages" : [ {
"errorCode"...
7
votes
2
answers
4k
views
"sh: line 1: Moved: command not found" installing npm with curl | sh
I attempted to install npm on mac OSX Yosemite with the command:
curl https://www.npmjs.org/install.sh | sh
And I received the following message:
% Total % Received % Xferd Average Speed Time ...
1
vote
2
answers
518
views
Running bash script with "spawn" in Node.js seems to pause halfway through execution
Heres a gist of what I'm doing: https://gist.github.com/MattCollins84/75f9ebd422ed6d1d5c91
As part of some process I generate a bash script that has a bunch of curl commands in it (around 20k ...
0
votes
1
answer
4k
views
Curl POST Form with Image File to Form
I am trying to POST a JPEG image from a particular file directory to the server curl. This is what I typed:
curl -v -include --form filedata='/home/pi/Documents/2014-01-18-09:11:25.jpeg' http://...
2
votes
2
answers
579
views
programmatic dropbox sharing
Are there any option through out the dropbox api namely the REST version, to programmatically exercise the sharing options or has anyone invented or discovered a unique approach to this using unix or ...