Curl Google Geocoding API suddenly very slow

I was working on a site about a month ago that calls Google's geocoder and returned the results almost instantly. Now when I attempt the call, it takes about 8 seconds. Is anyone having problems with the service generally being slow? I'm using php and curl to grab the information, for instance: $url = "http://maps.googleapis.com/maps/api/geocode/json?address=1295 Federal Avenue, Los Angeles, CA&sensor=false"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $parsed

How can I pipe wget/curl output to check whether it contains specific word?

I'm trying to download a huge number of consecutive files from a website, but I only need those that contain a specific word. What I'm doing now: I'm downloading all files like this: wget http://host/file/{0..100000}.html What I need is to check the output, and if it contains "phrase", download it to my hard drive. Please point me to the right direction.

How to test elasticsearch for a flat file using curl?

I have installed elasticsearch & curl successfully and is working fine, means http://[localhost]:9200 & curl -XGET [localhost]:9200'` results in { "status" : 200, "name" : "Bereet", "version" : { "number" : "1.0.1", "build_hash" : "5c03844e1978e5cc924dab2a423dc63ce881c42b", "build_timestamp" : "2014-02-25T15:52:53Z", "build_snapshot" : false, "lucene_version" : "4.6" }, "tagline" : "You Know, for Search" } Now i want to run the search for a file ca

How to fetch data from umlaut domain with curl?

I try to fetch data from an umlaut domain via curl. Well, its not working, I get the error: Could not resolve host: http://müller.de/ Host not found following settings in Curl $agent= 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)'; $ch = curl_init(); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_URL, 'http://müller

Curl Discovering devices in Orion

I'm new in Fi-Ware and I'm trying to do something useful with it. In particular, I've found some of the commands to get some information, but you know that when you ask you need the ID of the device. I haven't found a clear command, with curl, to get the list of the ID in SmartSantander. Can anyone tell me if he/she could, and what command it is? thank you very much

Curl GoogleSheets API download non-public spreadsheet as csv

This is a very broad question, I'm only looking for general advice/directions to a tutorial. I would like to download an unpublished googlesheet as a .csv file locally. I've seen other questions about downloading public published google sheets, but I couldn't find any solutions to download unpublished sheets. Is there a simple way to use wget/curl command in a shell to download an unpublished google sheet as a .csv? If not, I've looked into Google API, and found this page on Google sheets API.

curl: (60) SSL certificate problem: unable to get local issuer certificate

root@sclrdev:/home/sclr/certs/FreshCerts# curl --ftp-ssl --verbose ftp://{abc}/ -u trup:trup --cacert /etc/ssl/certs/ca-certificates.crt * About to connect() to {abc} port 21 (#0) * Trying {abc}... * Connected to {abc} ({abc}) port 21 (#0) < 220-Cerberus FTP Server - Home Edition < 220-This is the UNLICENSED Home Edition and may be used for home, personal use only < 220-Welcome to Cerberus FTP Server < 220 Created by Cerberus, LLC > AUTH SSL < 234 Authentication method accept

curl CA issue in linux

I am trying to install "flow" with using "brew", but there are some errors about curl CA problem. I've already tried to do some of the solutions in the stackoverflow, but I couldn't figure out. Is there any idea? ==> Downloading https://github.com/facebook/flow/archive/v0.21.0.tar.gz curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a

How to get Google OAuth 2.0 Access token directly using curl? (without using Google Libraries)

I'm trying to follow this tutorial to authenticate with Google using their OAuth 2.0 API. However, I would like to make straight curl calls rather than use their libraries. I have obtained my Client ID and Client Secret Key. Now I'm trying to get the access token like this: curl \ --request POST \ --header "Content-Type: application/json" \ --data '{ "client_id":"MY_CLIENT_ID", "client_secret":"MY_SECRET_KEY", "redirect_uri": "http://localhost/etc", "grant_type":"authorization_code" }

Why is curl treating my username like a URL?

I'm trying to figure out what headers are being sent by a remote server, using cURL to view the request. The remote server uses http basic authentication. I make the request: curl --basic -D -u 'username' https://my.server.location And it outputs: curl: (6) Could not resolve host: username Before then outputting the response from the server as if I tried to access without providing credentials. Why is curl ignoring the commandline -u argument and attempting to make a request to my userna

Curl dnf/yum seems broken (segmentation fault (core dumped) )

I encounter the following problem each time I try to use yum or dnf: Segmentation fault (core dumped) I have no idea on how to resolve this! I am running on a fedora 24 distribution (virtual machine) libcurl version seems to be 7.47.1. (I strongly suspect my lib curl to be broken and creating the segmentation fault) Is there a way to repair this?

Posting data on a secure web page (https) using Curl

I want to write (post) data on a https web page using Curl library. I should mention that I am using visual studio c++. I am not sure, but as far as I understand, CURLOPT_POSTFIELDS works for Http protocol. I used the following example given in the https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDS.html. But it doesn't work. I am not sure, but as far as I understand, CURLOPT_POSTFIELDS works for Http protocol. CURL *curl = curl_easy_init(); if (curl) { const char *data = "data to sen

Curl request from command line and via Groovy script

I am facing an issue which i do not understand, I have written a simple groovy script that when called from the command line works as expected #!/usr/bin/env groovy def jsonParse(def json) { new groovy.json.JsonSlurperClassic().parseText(json) } def ticketNumbers = ["MYSTATS-2695", "MYSTATS-2694"] ArrayList<String> jiraLinks = new ArrayList<String>(); for(int i =0; i < ticketNumbers.size(); i++) { def jira_json = "curl -o /dev/null -X GET -H Content-Type: application

Curl Kubernetes - Perform rolling update with Golang plugin

I have a docker in kubernetes that listen to configMap changes and trigger a golang function every change. I want to perform rolling-update to deployment in this part and i didn't find any api that have this command. Is there anyone who know an api with this command? Or know a better way to get to the same result?

UrlFetchApp.fetch API "Request contains invalid authentication headers" (cURL works)

Making an API request works using PHP with cURL, but I can't get it to work in Google Apps script using UrlFetchApp working PHP code: $ch = curl_init(); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-type: ".$contenttype, "X-BOL-Date:" .$date, "X-BOL-Authorization: ".$signature)); curl_setopt($ch, CURLOPT_URL, $url.$uri); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_PORT, $port); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPE

CURL command getting failed in jenkins

I'm trying to run the following command in jenkins pipeline code def response="curl -D- -u 'AAA:AAA' -X POST -H 'X-Atlassian-Token:nocheck' -F 'file=@${workspace}\test.txt' http://localhost:8080/rest/api/2/issue/AAA-98/ attachments" println response bat "${response}" getting following error, def response="curl -D- -u 'AAA:AAA' -X POST -H 'X-Atlassian-Token:nocheck' -F 'file=@${workspace}\test.txt' http://localhost:8080/rest/api/2/issue/AAA-98/attachments" println response bat "${response}"

How can I issue a google image search request via cURL?

I'm trying to do a reverse image search by file upload using cURL. To that end I've opened the firefox network tab in the console and selected "copy as cURL" on the respective POST request. This gives me curl 'https://www.google.de/searchbyimage/upload' -H 'User-Agent: ...' \ -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \ -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://www.google.de/' \ -H 'Content-Type: multipart/form-data; boundary=-----

Elasticsearch Checking for not null with completion suggester query in Elastic Search

I have an existing query that is providing suggestions for postcode having the query as below (I have hard coded it with postcode as T0L) "suggest":{ "suggestions":{ "text":"T0L", "completion":{ "field": "postcode.suggest" } } } This works fine, but it searches for some results where the city contains null values. So I need to filter the addresses where the city is not null. So I followed the solution on this and prepared the query like this. { "quer

POST with arbitrary body using curl

I'm using curl to test my api. I want my api to receive a POST request and return the request body. Does anybody know how to include a body within the POST request. My api isn't handling forms, i simply want to test arbitrary JSON against my API. I am currently using this command. curl -X POST /api/route How can i modify that request so that it can contain a custom body?

how to transform a cURL to axios

I have this cURL which work fine, $ curl -X POST --insecure --header "Content-Type: application/json" --header "Accept: application/json" --header "Authorization: Basic Y21lc3ZtOnZQfCsrNXBNQmxibTkl" -d "{ "filter": "", "kind": "cluster", "sort_order": "ASCENDING", "offset": 0, "length": 10, "sort_attribute": "" }" "my_url" I would like to perform the same post request, i have a bad request error note that i have to bypass the ssl certificate (done in curl with --insecure and in axios by reje

converting curl to wget

I have these two commands that I am trying to convert from curl to wget. location=$(curl -Is "https://github.com/some/release"| grep "Location") curl -Lo /usr/bin/somerelease "${some_release_url}" How can I achieve this? For the first, I've tried wget -q --spider "https://github.com/some/release" but the value of location is nil. For the second, I've tried wget -ro /usr/bin/somerelease "${some_release_url}" but that gives me a flag not found. Works as expected with curl but I can't

Postman got 400 , but the cUrl command that generated from postman works

Postman got 400 , but the cUrl command that generated from the postman works. The cUrl command works as expect, so I believe the request itself has no error. Target domain is a instant domain of our kubenates, reverse-proxy redirect the request to different service on k8s depend on prefix of the domain. Looks like the request been redirect to wrong place. But how is it only happens to postman ? Both of postman and the cUrl command execute on my PC. Checked proxy setting of postman and comm

Curl Changing connection timeout value of Apache Jetty in aem not getting applied

I am using curl to build an AEM package. I am changing the connection timeout value of Apache felix jetty http service in system/console by creating a new instance of it in configuration manager but the change in value is not affecting the POST request. It seems that the changes are not getting applied. Any help would be highly appreciated.

How to cURL this HTML form?

I am trying to automate the login process into my dome's WLAN. The login form looks like this: <form method="post" action="https://10.70.70.70/user/user_login_auth.jsp"> <input align="center" type="text" name="username" placeholder="Username" id="username" maxLength="256" AUTOCOMPLETE=OFF /> <input align="center" type="password" name="password" placeholder="Password" id="password" maxLength="64" AUTOCOMPLETE=OFF /> <input type="hidden" name="email" id="email"

Curl Linkedin Marketing API March 31 queries update

Some may know, Linkedin Marketing API announced they will begin rejecting API calls not meeting new criteria starting March 31, 2021. So I started updating my service. However, there is such a problem. The sample CURL commands given in the documentation do not work. Related announcement Have you encountered such a problem before? If I need to show you a few examples: curl -X POST https://api.linkedin.com/v2/adCreativesV2 \ -H 'X-HTTP-Method-Override: PUT' \ -H 'Content-Type: multipart/mixed;

Curl Wekan API delete_user returns success but user not deleted

I am new to Wekan (we are looking into Wekan as replacement for Trello). It is installed on one of our servers and now I am trying to API. Through the API I can create new users, list the users and do other actions. However when I try the delete_user (there is strangly no button in the UX to do this) curl -X DELETE https://example.com/api/users/F4hwZEPMfyNa6YAkX -H "Accept: application/json" -H "Authorization: Bearer iauryT9zrr0_ycHoyq9nYt7OJlfKsKRkLY1gQzQYb9r" I get the cor

Curl File name length limit for AppleScript in URL Access Scripting?

I'm having a strange AppleScript issue, and can't seem to figure out the underlying cause, or a solution. I'm trying to download files with a process that mimics the one below. This code fails for me, reporting "URL Access Scripting got an error: Can’t make some data into the expected type." number -1700 to item" If I remove 3 characters from the local path name (and it doesn't seem to matter which 3), then it runs fine. If I only remove 2 characters, it doesn't throw an error, but the file it

cURL try catch problem

I'm trying to debug this cURL-operation. The var_dump() is returning bool(false) How can I make it exit the try in that case? function parse($url, $headonly = TRUE ){ $agents = 'Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16'; try { $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_VERBOSE, FALSE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); c

Curl - Get Each file size from initial curl request

I know cURL can get the total download size of a page, but I am looking to divide the download size into the total images downloaded, total script size downloaded, total stylesheet size download etc etc. What is the general way of going about doing this... I have found this link PHP: Remote file size without downloading file and I am thinking it has something to do with doing a for loop and curl to get the size of each file pulled in by the inital curl request. Let me know if anyone has any t

Do you need to use the $ch variable with cURL?

Before going any further, I apologize for my ignorance on the subject, I am a newbie. When using the cURL function, is it required to use the $ch, $output, $f, $url, etc variables or can you name the variables whatever you like (while still defining them the same way)? My first instinct was I can name them whatever, but all the examples for cURL I see use the standard variable names. Thanks for your answers in advance!

Curl On Which Port Couchdb Replication will be done

I have two CouchDB databases running on two machines (SystemA and SystemB). Their URLs are http://SystemA:5984/_utils http://SystemB:5984/_utils Replication is done from SystemA to SystemB using the following command: curl -H 'Content-Type: application/json' -X POST http://SystemB:5984/_replicate -d '{ "source": "http://SystemA:5984/foo", "target": "foo" }' On which port is the data being transferred?

how to specify the chunk size in a chunked post using curl

I am trying to send audio to a webservice that want the audio as a chunked post. Sending pre-recorded files works fine, but running the below code does not send anything to the server as it seems. Is curl trying to send everything in one chunk? I can't find any option to e.g. ask it to chunk every xxx bytes. gst-launch-1.0 pulsesrc ! "audio/x-raw,rate=16000,channels=1,format=S16LE" ! fdsink sync=false | \ curl --header "Transfer-Encoding: chunked" --data-binary @- http://...

Curl how to update insert dynamic filed in SOLR

I have a collection where schema.xml mentioned dynamic field as <dynamicField name="dynm_*" type="string" indexed="true" stored="false" multiValued="true"omitNorms="true"/> I would like to insert a new document with a field name called "dynm_field" using CURL request. Can I do it and how??

Curl Cronjob issue (on SSL)

I'm tring to get curl cronjobs works on a joomla site. /usr/bin/curl -k --silent https://sito.com/en/?option=com_invitex&tmpl=component&task=mailto&pkey=welovemoda >/dev/null I added the -k param because googling I see few users found problems with curl command and SSL. But it doesn't work either.

list google drive files with curl

I'm trying to get the list of files on Google Drive with curl, but OAuth 2 is getting the best of me. Here are some of the things I tried: curl -H "Authorization: Bearer $token" https://www.googleapis.com/drive/v2/files Where $token is a 460 character string I got using: https://www.google.com/accounts/ClientLogin and this upload script (which works great). This is the error I received: { "error": { "errors": [ { "domain": "global", "reason": "authError", "mes

Jenkins - get latest artifact with curl

I've been looking around and cannot find how to download the latest artifact with curl or even just to know the link. I've discovered the permalinks and api xml/json feeds which contain all the data that is needed such as the artifact names etc....Also discovered the special link that zips all artifacts, but my artifact is already zipped. Is there is a way to not have to pick out information and just use a simple link. In other words, tell jenkins to give me the latest artifact of job x withou

How to send authentication token using curl in golang?

I'm trying to use authentication model to my golang API and I'm using gin framework. I want to send authentication token using curl, then validate it and do all the crud operation after the authentication happens. My code is like this: func TokenAuthMiddleware() gin.HandlerFunc { return func(c *gin.Context) { token := c.Request.FormValue("token") if token == "" { respondWithError(401, "API token required", c) return } if token != os

how can I put parameters in ElasticSearch curl post

The following is my linux shell code for insert one record to ElasticSearch: username="Tom" curl -XPOST 'http://192.168.0.1:9200/userdb/info/1' -d '{"user":$username}' But it didn't work, it treated $username is a string not a variable. How can I fix this please?

cURL and s3 GET

I'm trying to figure out what I need to provide in order to do a GET operation on an s3 object that has been encrypted using server-side encryption via a kms key. When trying to do a cURL on my test doc I get the following error: Requests specifying Server Side Encryption with AWS KMS managed keys require AWS Signature Version 4. UPDATE: Adding the results from curl $ curl -v https://s3-us-west-2.amazonaws.com/rkbtest/check.png * Trying 54.231.185.12... * Connected to s3-us-west-2.ama

Curl how to create a volume in docker with filesystem?

Does Docker supports creating volume with specific filesystem ? I can't find any API call for it, but I can see some document which says it can. I am trying this with a curl command: curl -H "Content-Type: application/json" -X POST -d'{ "name":"visadfasfas","scope":"local","driver":local,"type":"tmpfs" }' https://<HOST-IP>:2376/volumes/create So it creates the volume but I can't see what type of volume it is in response.

error while importing data by curl comand

Hi I am trying to import data using API token to my redcap projet. This is my curl script TOKEN="08F14AE57696E458BA6FCE69" SERVICE="https://cri-datacap.org/api/" curl -F token=${TOKEN} -F overwriteBehavior=normal -F content=record -F type=flat -F format=csv -F data="</opt/temp//my.csv" ${SERVICE} here is my.csv record_id,seat_id_seq,address,price,email,tickets1_complete 123,aaa,aaa,aaa,aaa,2 and It is importing data perfectly fine without any error. Now I don't want to send data

Curl How to Connect Standalone Stripe account to platform after user authorizes access

When connecting a Stand alone account to a platform in Stripe Connect, there is one more small step to be taken after the user authorizes access. Stripe offeres this code example: curl https://connect.stripe.com/oauth/token \ -d client_secret=sk_test_xxxxxxxxxxxxxxxx \ -d code=AUTHORIZATION_CODE \ -d grant_type=authorization_code However, my application runs on Cloud Code, and I would like to make the request from a cloud code function on my parse-server. How can I do this?

Using libcurl with Android NDK

I'm working on an Android NDK project, and I would like to use the libcurl library to download resources from C++. I am using the NDK's built-in ndk-build tool. During build, I get the following error: Build command failed. Error while executing process /Users/afarm/Library/Android/sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/afarm/AndroidStudioProjects/NativeOpenGL/engine/Android.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDK_DEBUG=1 APP_PLATFORM=android-

why is curl prints HTML code of the page?

I am trying to trigger a buildbot build using following command ,the output of this is a plain HTML output of the URL being used, how do I debug this problem ?how do figure out the right curl command? why is it outputting the HTML code? curl https://username:password@tech.company.com/builders/companyABCW%20rootTest%20Yukon -d train="name1" -d build="17A267" -d usernameala" -d forcescheduler="ForceTasksAUTO" -d projectSHA="2b888c42835af4d1138e1ab5ba965e6944bc4652"

Curl Incoming WebHook and dynamic user-name/channel

I was using Legacy token and I was able to send any channel with any user name. But when I switch to use incoming webhook feature then its only works for only one channel that we selected during creating webhook. Here is what I am using, curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!","channel":"#my-channel" }' https://hooks.slack.com/services/XX/XX/XX Here message is always sent to default channel instead of channel that I am specifying in CURL. What is easi

How to access GitLab repository graph using CURL?

I Would like to automate generate git branch image using bash. One way is to directly download svg file on gitlab url: http://GITIP/PROJECTID/network/master Is there any api call like below to get image? thanks. curl --header "Authorization: Bearer TOKEN" http://GITLAB/api/v4/projects/GETGRAPH?

Curl Authenticating to spring cloud data flow using UAA token - stuck at 401

Am attempting to authenticate to scdf server using tokens returned by UAA server. I can't seem to get anything but a 401. I've tried sending the tokens using curl too - same result. (curl) tokens are created using values obtained via this process. Tokens are tested against scdf server as curl -v -H "Authorization: Bearer <token>" <dataflow-url from above link> -H 'Accept: application/json" Im not even sure how to debug this on the server side. Server is setup using params like

Jenkins Pipeline: curl not recognizing --output parameter

I'm trying to save a spidered URL into a variable and using it later on in a curl call: script { installableURL = getCommunityInstallableURL(device, os) if (installableURL == null) { installableURL = sh script: """ wget --spider -Fr -np "https://lineageos.mirrorhub.io/full/${device}/" 2>&1 \ | grep '^--' | awk '{ print \$3 }' | grep "${os}.*\\.zip\$" | sort -nr | head -n 1 """, returnStdout: true

  1    2   3   4   5   6  ... 下一页 最后一页 共 16 页