Questions tagged [curl]

cURL is a library and command-line tool for transferring data using various protocols such as HTTP, FTP and SFTP. The cURL project produces two products, libcurl and curl. This tag covers all usages of cURL, regardless of which cURL product is used.

curl
16,842 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers
388 views

Instagram feed with Zend framework 2

I'm trying to use a simple code to get my Instagram feed. I'm using Zend framework 2 with zend server (as a localhost). I'm using the code given here. I activated curl in my php.ini so I guess the ...
Brieuc's user avatar
  • 4,074
1 vote
1 answer
2k views

Can't detect 1080p and higher video url from Youtube

I am trying to make a Youtube video downloader by using this php script. I have got it from here. https://github.com/jeckman/YouTube-Downloader It works fine and shows direct link up to 720p ...
user2978381's user avatar
1 vote
0 answers
10k views

cURL error 26 couldn't open file

So, need help. prePS - code works but not works fine when load test. So, at all, php code get from user a file and save it on cluster(4 nodes) as tree parts. so, simple code like. $user_file = ...
user3032727's user avatar
1 vote
3 answers
3k views

SSL decryption failed or bad record mac in NGINX Server with cacert.pem set

I am trying to connect to secure link using CURL. I have set the following two parameters in CURL of PHP page curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, TRUE); curl_setopt ($ch, CURLOPT_CAINFO, "/...
Vijay's user avatar
  • 318
1 vote
1 answer
2k views

WHMCS: Order Accept Encountered Problems- Curl error: couldn't connect to host Url

For the past four hours I have been trying to configure TCAdmin to work with whmcs. I set up the server in the server setting of WHMCS and added all the configurable options. I got my first demo order ...
user3563240's user avatar
1 vote
1 answer
143 views

Send Curl Login infor as a GET or POST parameter

I have the current URL curl -X GET http://domain.com/api/user/ -u username:password If I send this over the terminal I get the JSON response for that API request if I don't add username:password to ...
Eddwin Paz's user avatar
  • 2,870
1 vote
2 answers
2k views

Set request type & content type in CURL request

I am using KODAK api to integrate photo print functionality in my website. All is working fine but it gives error message at the time of creating order as you can see on below URL https://ws.test....
user2545352's user avatar
1 vote
0 answers
5k views

How to fix missing libsasl.dll when using cUrl?

I'm trying to use curl with c++ and I've gotten as far as downloading the version here: http://curl.haxx.se/latest.cgi?curl=win32-ssl-devel-msvc I've set up and linked everything following these ...
Bok McDonagh's user avatar
  • 1,407
1 vote
1 answer
315 views

pass URL-encoded URL to CURL

How do i pass a URL-encoded URL to CURL? Ex: curl "http://live.nwk5.net/secure/v.stream/playlist.m3u8?expiry=kFmysuf%2fLjOqgdXGJWqFQA%3d%3d" This returns a invalid page. if I URL decode the ...
user3273534's user avatar
1 vote
0 answers
911 views

Polycom cURL to HTTP request

I am using a polycom device to make calls. I need to call a number from an android device. The polycom tutorial suggests that I use cURL for this purpose. However, since android does not support cURL, ...
Anirudh's user avatar
  • 2,080
1 vote
0 answers
151 views

curl getting header and cookie from one URL and posting to another URL to retrieve data

I'm trying to retrieve json data from a URL, however it requires http authorization (no password) just cookie and header data which I would need to get from the parent URL. I've managed to retrieve ...
Meisam Ebrahimi's user avatar
1 vote
0 answers
467 views

Linux Terminal: fill out form using cURL

I am experimenting with cURL in Linux Terminal. I am trying to fill out a simple form, but I am unsure how I can check to see if I actually filled the form out. The command example I am using is: ...
Daiwik Daarun's user avatar
1 vote
1 answer
2k views

cURL aspx posting issue

I have been developing php curl script for www.pool.com I could handle viewstate and event problems but I see other issues about posting. Invalid postback or callback argument. Event validation is ...
OEASLAN's user avatar
  • 150
1 vote
1 answer
256 views

Login to remote SSL site with PHP Curl fails

I got stuck trying to figure out why I can't access one specific SSL protected site, https://www.stockpair.com, using PHP Curl. The problem is that I just don't get any output at all. I used similar ...
shudder's user avatar
  • 119
1 vote
1 answer
1k views

Post data with curl to another server

I try to post some data to another server using curl. The problem is that I get nothing on the other server. Server1: $a = $USER->id; $b = $USER->username; error_reporting(-1); $url = '...
user2638842's user avatar
1 vote
0 answers
153 views

Proper use of Curl POST & GET

I am using a CURL command to send strings of data to a form. My problem is that the form does not seem to be receiving the data. It appears that either my curl command is not right or my GET in the ...
user3399760's user avatar
1 vote
1 answer
1k views

Modify the html code of site with DOM and CURL

I'm trying to modify content of my local site, so I recuperate the content of the site with CURL PHP then i parsing it with DOM and i change the html code to optimise it.for example i change tag to ...
user3515030's user avatar
1 vote
0 answers
1k views

Not able to fetch rss from website because of CloudFlare

Am trying to grab rss feed from http://www.elwatannews.com/home/rssfeeds?sectionId=115 This is site is protected using cloudfare.i tried to sove the issue from the thread curl: can't fetch rss ...
Subin Tp's user avatar
1 vote
0 answers
1k views

fopen() failed to open stream: HTTP request failed - Zabbix API

I have 2 servers: 1 LAMP web server where I have my webpages, and another server with Zabbix installed for monitoring things. My web server connects to the Zabbix server with a PHP script and uses the ...
Wesley's user avatar
  • 13
1 vote
1 answer
164 views

UploadFile C# alternative in PHP

I have been given this code example in C# var fileUploadClient = new WebClient(); fileUploadClient.Headers.Add("Content-Type", "application/xml"); var rawResponse = fileUploadClient.UploadFile(Url, ...
Christoffer's user avatar
1 vote
0 answers
176 views

Remote FTP Backup -Tar archive+ encrypt+ split to a remote ftp

I have a huge directory(200+ gb) for backup. I want upload the tar file simultaneous to a remote ftp. (pipeline, stdout, stdin etc.) I don't want write a data to local hdd. I have a ssd hdd this ...
tara123's user avatar
  • 75
1 vote
0 answers
372 views

How to separate cURL headers from body when multiple headers exist

There are many questions on here asking how to separate the header of a cURL response from the body and the two methods I've seen are: Use the length of the header and substr() Use explode("\r\n\r\n",...
Nate's user avatar
  • 27k
1 vote
1 answer
705 views

Tar archive+encrypt+split to a remote ftp

I want upload the tar file simultaneous to a remote ftp. But this code doesn't work. tar cvzf - /backup | openssl aes-256-cbc -salt -k "password" | split -b 100m | curl -u user:password ftp.site....
tara123's user avatar
  • 75
1 vote
0 answers
2k views

PHP DOMDocument::loadHTML() return error for entities

I'm using DOMDocument class to parse elements but this class is returning error: DOMDocument::loadHTML():Tag footer invalid in Entity and is unable to parse webpage. I'm using following script: ...
DolDurma's user avatar
  • 16.9k
1 vote
0 answers
143 views

My website content not getting fetched via Curl (fetch via url)

My website content is not getting fetched. I am using CURL script to check the fetching, also checking in sites like Facebook. But except my website all other website's content is getting fetched. ...
noob's user avatar
  • 641
1 vote
0 answers
203 views

Getting Resource from fsockopen behing proxy

I have an existing code which is : $Socket = fsockopen(HOST, PORT); where $Socket returned here is a resource. However, i need to get it behind a proxy server with Authentication. I am sure it could ...
Guns's user avatar
  • 2,688
1 vote
0 answers
58 views

Page Time Intervals Refresh

$output_filename = "work.txt"; $host = "http://www.indeed.com/l-Cuyahoga-Falls,-Ohio-jobs.html"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, ...
user3426247's user avatar
1 vote
0 answers
186 views

Python and Elasticsearch API changes and Autcomplete

So to begin. I am trying to add around 7.2k documents. No problem there. The issue is after I am not able to get any suggestions returned to me. So this is how the information is added: def ...
redrubia's user avatar
  • 2,296
1 vote
1 answer
1k views

curl multi interface dont work

I try to run curl multi interface example: http://curl.haxx.se/libcurl/c/multi-single.html I'm using mingw g++. First I got an error "undefined reference to 'select@20'". I added "-lws2_32" to ...
ympu's user avatar
  • 31
1 vote
1 answer
567 views

Tar archive to remote ftp

I have big data for backup (50 GB). I don't want to create the tar archive to hdd. I have a ssd. I want upload the tar file simultaneous to a remote ftp. But this code doesn't work. I got an error ...
tara123's user avatar
  • 75
1 vote
2 answers
478 views

Response 403 when converting curl command to Java

I am facing a problem with converting a curl command to Java. Below is my curl curl https://api.XXXX.com/authorizations \ -u john:doe -d '' \ -H 'Accept: application/vnd.drivr.v2+json' \ -H 'Content-...
user3200361's user avatar
1 vote
0 answers
738 views

PHP or CURL ASPX.NET Login

After hours of trying.. I'm attempting to Login to ASPX and retrieve a certain page. Here is post data POST /xdesktopdefault.aspx?ReturnUrl=%2fxPostings.aspx%3fbaseid%3d5%26postingid%3d28217%26Type%...
SethCalkins's user avatar
1 vote
0 answers
419 views

Cleaning facebook url cache from php

I have an issue with the facebook linter feature. I'm trying to clean the Facebook cache of one my URL, with a PHP curl query. As you can see here (Updating Objects), Facebook got an api for scrapping ...
Xavierh's user avatar
  • 441
1 vote
0 answers
205 views

Using curl library in DosBox

I have a task to develop some application providing SOAP-requests realization for DOS. I have already developed a similar application under Linux, using C++/STL and curl and openssl libraries. Is ...
Maria's user avatar
  • 29
1 vote
0 answers
103 views

Consuming API Curl to Java Application

I have an URL that requires me digest auth using username and password. curl -k --digest -u user:password https://api.uni5.net/cliente But have no idea how to use Digest in get Request for Java ...
Roberto Fonseca's user avatar
1 vote
1 answer
518 views

Access Denied error when i download file using sas and curl

I am using the below sas and curl code to download a file from web. data _null_; x "cd c:\sasdata"; x "curl -O http://nseindia.com/content/indices/histdata/CNX%20NIFTY21-03-2014-21-03- 2014....
RAVINDER KUMAR's user avatar
1 vote
1 answer
292 views

Run a parallel script on execution

I am trying to figure out how to run a parallel execution of a script on the same server. As it is now I am using cUrl, but am not sure this is the best or smartest way to do so. I want, when my ...
Mansa's user avatar
  • 2,307
1 vote
1 answer
3k views

Using imgur api v3 to upload images with php

I'm trying to write a very simple test to upload an image to imgur and then redirect to the imgur page once it's done. (haven't gotten to that point yet) I've looked all around these forums and tried ...
JayOverflow's user avatar
1 vote
0 answers
230 views

Populating and submitting a Gravity Form on external site

I have two SEPARATE sites: Site A: A Wordpress site which has a Gravity Form. Site B: A non-Wordpress site which hosts a simple form - the data from this form needs to end up at Site A's Gravity ...
runningonplants's user avatar
1 vote
1 answer
1k views

My website takes too long to load data from my API

It's my first time developing an API, which is why i'm not surpirsed it was running a little slow, taking 2-4 seconds to load (I used a microtime timer on my webpage). But then I found out how long it ...
Blease's user avatar
  • 1,400
1 vote
1 answer
231 views

Hit another url from observers in Magento

Hi i have a multi site on our server one is in magento and other is in core . I have develop a module through which the user will create automatically to another site whn he signups to magento site. ...
Rohit Goel's user avatar
  • 3,484
1 vote
0 answers
94 views

Submitting Catcha on an external form

I've been presented with a challenge which has had be stumped now for a few days. I am working on a project for which I need to submit a form on an external sever which also has a captcha. I am ...
ayame's user avatar
  • 87
1 vote
1 answer
2k views

Handle connection error with libCurl

I'm using libCurl in multi-threaded way (curl_multi_perform), but don't know how to implement things so that I could handle the case of losing network connection (or any HTTP error). looks it never ...
blackgun's user avatar
  • 411
1 vote
0 answers
261 views

Infinity loop (server down?) when I am trying to get page content with cURL (+ sending session_id)

I have script [script /inc/user_record.php] (user on server A where I have to get json data [script /inc/json.php] (which is generated by another script on server A). 1 problem is: script print json ...
Sharikov Vladislav's user avatar
1 vote
0 answers
89 views

download image and add post meta value after post publish

I have basicly generate my web pages qr code via google apis. Here is my basic qr Code generator function. function istanbulThhemesQrCodeAction( $width = '130', $height = '130', $url = null, $choe = ...
Fatih Toprak's user avatar
  • 1,107
1 vote
2 answers
2k views

CURL is not return anything when I use with TOR.What should I do?

Here are the things I did Downloaded TOR https://www.torproject.org/dist/vidalia-bundles/vidalia-bridge-bundle-0.2.4.20-0.2.21.exe Installed it Started the App Started WAMP on localhost used this ...
user3407278's user avatar
  • 1,263
1 vote
0 answers
266 views

Is there a way I can delete all data from a sharepoint list using cURL

Is there any simple command to delete data from a sharepoint list? I know we can delete 1 row at a time by explicituly defining its ID. I am looking for some thing like DELETEALL etc.. Here is the ...
user3230433's user avatar
1 vote
0 answers
359 views

sometimes php cURL can't connect to Node js server, returns http code 0

[Context] This is Node js code from my local machine, works fine on live with changed host name. I use forever to execute it. Also php code which connects to node js server for http response. The ...
Amit Agarwal's user avatar
1 vote
0 answers
241 views

Android, Java Via HttpClient - HttpPut

I'm working on native android app using couchdb server side. Everytime I've tried to upload attachment to document, It's throws ClientProtocolException public JSONObject uploadPicture(PutAttachment ...
Shai Ben Shimol's user avatar
1 vote
0 answers
206 views

How can i display parallely updated record id from mysql using curl with jquery in php

I am getting some wrong display with updated records in mysql. My requirement is there are 4 process in my webpage. First user clicks on process one ( i am calling this as round one) some records ...
user3408779's user avatar

1
96 97
98
99 100
337