All Questions
6
questions
1
vote
0
answers
156
views
Why is cURL returning just two square brackets with this request?
This curl request returns empty square brackets []:
curl "https://www.bathnes.gov.uk/NodeAPI/geoDataLookup/getGeoJSON/-2.8530120849609375/51.263633525637/-2.126541137695313/51.456574106519724/11&...
1
vote
1
answer
4k
views
How to recursively upload a directory which has directories and files to a server through HTTPS using curl command?
This is the command I am using:
curl --insecure -i https://XX.XXX.XXX.XX/project/conatinername/foldertobeuploaded/${file}.html -X PUT -H "Content-Type: text/html charset=UTF-8; -H "Content-Length:0" -...
1
vote
2
answers
2k
views
curl: add string as option in bash
I'd like to pass a variable string to command options in curl.
if [ ! -z ${picture} ]; then APISTRING+="--data-urlencode \"picture=${picture}\" ";fi
if [ ! -z ${additional} ]; then APISTRING+="--data-...
1
vote
1
answer
3k
views
How do I Curl command line POST form data returning HTML page with answer
I am trying to read a single value from a web enabled device. The device has a simple Post form which when will return an HTML page. This works fine from the browser, but not from the command line:
# ...
0
votes
1
answer
9k
views
what is the meaning of "body" in a POST request?
I am new to PHP. I have a stupid question and need your explanation.
When I make a POST request with the cURL command-line:
curl -d "username=admin&password=admin&submit=Login" --dump-header ...
2
votes
0
answers
1k
views
Posting XML wrapped in SOAP posted using Curl results in invalid XML character was found exceptions
Sending an XML file using curl results in:
Invalid XML character (Unicode : 0x<integer>)
Attempt to solve the issue
According to this SO answer the issue will be solved if the XML version is ...