Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
curl_init()
- Page 1
Re: How to connect to the Pinterest API using PHP?
Programming
Web Development
1 Month Ago
by geekinformatic
Hey! If you're using the CakePHP framework, you can connect to the Pinterest API with cURL and OAuth integration. Just follow Pinterest’s API docs for endpoints and token handling.
curl response specific value get
Programming
Web Development
4 Years Ago
by ramyayarrapothu
$curl =
curl_init
(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://livehealth.solutions/getAllTestsAndProfiles/?token=…
Re: cURL Experiments
Programming
Web Development
8 Years Ago
by UI
…/ //gets the data from a URL function get_url($url) { $ch =
curl_init
(); if($ch === false) { die('Failed to create curl object'); } $timeout…
Re: cURL Experiments
Programming
Web Development
8 Years Ago
by UI
cURL Sample 2: Is it true that the following short code is just as good as the one mentioned on my previous post ? <?php //This code was found on: http://www.binarytides.com/php-curl-tutorial-beginners/ //2nd Example //The above GET request to a url can be done in a much simpler way like this: //…
Re: cURL Experiments
Programming
Web Development
8 Years Ago
by UI
cURL Sample 3: Can you figure-out or atleast guess why the following code is better than the previous 2 ? What benefits do you see in it than the other 2 code samples ? No, I'm not testing you but trying to learn from you. <?php //3rd Option //This code was found on: http://www.binarytides.com/php-curl-tutorial-…
Re: cURL and xmlrpc
Programming
Web Development
15 Years Ago
by kireol
cURL is used for getting and submitting web pages/forms from within code (php) xmlrpc is for making calls to a server for remote functions (so you have 1 copy of code, not many), much like SOAP is. so no, not the same, but COULD be used to accomplish the same thing.
Re: Init() function in ColdFusion
Programming
Web Development
14 Years Ago
by arrgh
init() is just a standard convention most people adopt with components. The init() function initializes any variables needed by the component's functions. Then returns a reference to the current component. ie [code] Test.cfm <cfset myObj = createObject("component", "MyComponent").init(dsn="My DSN")> …
Re: Curl Error
Programming
Web Development
12 Years Ago
by ndeniche
… you want them to do, etc. For instance: > Warning:
curl_init
() [function.curl-init]: Could not initialize a new cURL handle…
Re: curl response specific value get
Programming
Web Development
4 Years Ago
by Dani
Line 14 of your code converted the JSON returned from the cURL request into a PHP object. Typically, you would do something such as `$resArr->profileTestList[0]->testCode->testID->name` or something roughly like that. Unfortunately, you did not copy and paste the complete stdClass Object code here, and what you did post is not …
Re: curl response specific value get
Programming
Web Development
4 Years Ago
by Dani
I realized that in your post, you included the URI to fetch the cURL request: https://livehealth.solutions/getAllTestsAndProfiles/?token=3f115cd0-c79b-11eb-b07b-0aa43715764a Therefore, I'm able to see the complete response and provide you an accurate answer. `profileTestList` includes multiple tests (an array of tests). For each test, there …
Re: curl responses
Programming
Web Development
14 Years Ago
by FlashCreations
… = array()) { //Init cURL, returning false with any errors if(!($c = @
curl_init
())) { return(false); } //Append any get vars if(is_array($get)) { $get…
Re: curl responses
Programming
Web Development
14 Years Ago
by whiteyoh
… = array()) { //Init cURL, returning false with any errors if(!($c = @
curl_init
())) { return(false); } //Append any get vars if(is_array($get)) { $get…
Re: curl responses
Programming
Web Development
14 Years Ago
by FlashCreations
… = array()) { //Init cURL, returning false with any errors if(!($c = @
curl_init
())) { return(false); } //Append any get vars if(is_array($get)) { $get…
Re: CURL Help
Programming
Web Development
16 Years Ago
by Coreye
Just an update: I've tried it with just one instance of the curl cookie options and I've tried it with init(). EX:[CODE]$ch =
curl_init
("http://somedomain.com/");[/CODE] Neither worked. If any one has any suggestions or knows a better to do this, let me know. Thanks, Corey
Re: Curl Problem
Programming
Web Development
13 Years Ago
by saadi06
Yes it is redirecting to the same page the logic is here case 'login': if ($user->data['is_registered']) { redirect(append_sid("{$phpbb_root_path}index.$phpEx")); } login_box(request_var('redirect', "index.$phpEx")); break; If it is the mcp file now if the …
Re: Curl Problem
Programming
Web Development
10 Years Ago
by diafol
Read this http://php.net/manual/en/function.curl-multi-init.php#115055
Curl request returns 401 not authorized
Programming
Web Development
9 Years Ago
by iveto89
…/oauth2/token; $clientId = NETELLER_CLIENT_ID; $clientSecret = NETELLER_CLIENT_SECRET; $grantType = 'grant_type=client_credentials'; $curl =
curl_init
($url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt…
Curl and new gamespot search
Programming
Web Development
16 Years Ago
by zegames
…&stype=all&qs=grid'; function disguise_curl($url) { $curl =
curl_init
(); $header[0] = "Accept: text/xml,application/xml,application/xhtml…
curl responses
Programming
Web Development
14 Years Ago
by whiteyoh
… curl function [code] <?php function request($url, $postdata) { $curl =
curl_init
(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl…
Re: curl responses
Programming
Web Development
14 Years Ago
by FlashCreations
… problem. [code=PHP] <?php function request($url, $postdata) { $curl =
curl_init
(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl…
CURL trouble
Programming
Software Development
13 Years Ago
by Demetrio.pepi
Hello. My whole code is bellow and I getting the error message: {"responseData": null, "responseDetails": "Suspected Terms of Service Abuse. Please see http://code.google.com/apis/errors", "responseStatus": 403}. Do you have some suggestion? [CODE]#include <fstream> #include <vector> #include <…
Re: Curl and new gamespot search
Programming
Web Development
16 Years Ago
by zegames
…, Here my final test working code: [code=php]<? $curl =
curl_init
(); $url = 'http://www.gamespot.com/pages/search/search_ajax.php?q…
Re: curl responses
Programming
Web Development
14 Years Ago
by FlashCreations
Line 17 in [I]my[/I] code is the call to your function. In your code, that line is blank! :P [quote=whiteyoh] my page names curl.php is simple a get variable that echo's the id parameter, all within the same domain. [/quote] Umm, what? Your curl.php page takes a GET variable that echoes the id? Does it already, or is that what you want. If you …
Re: curl responses
Programming
Web Development
14 Years Ago
by whiteyoh
hi, i dont think ive been very clear. At present i use curl to integrate with a number of 3rd party systems, but all i do is create the url and post data. I then deal with the results ($results) in xml format. Im busy trying to get a new guy in the office to understand curl, so the code ive included is my curl function. the curl.php?id=1 …
curl returns Unauthorized Error 401
Programming
Web Development
12 Years Ago
by ganesh641
… is my curl function code for accessing gmail authentication... $curl =
curl_init
('https://mail.google.com/mail/feed/atom'); curl_setopt($curl, CURLOPT_RETURNTRANSFER…
Re: curl responses
Programming
Web Development
14 Years Ago
by FlashCreations
Is this what you're doing: [b]testfile.php:[/b] [code=PHP] <?php //Define either your function or my function here echo simpleCURL('url.com/curl.php', 'id=1'); ?> [/code] [b]curl.php:[/b] [code=PHP] <?php echo $_REQUEST['id']; ?> [/code] It would really help if I could see the [I]exact[/I] code you are using in both the curl.php …
Re: Curl request returns 401 not authorized
Programming
Web Development
9 Years Ago
by iveto89
I have tried this: $headers = array( 'Authorization: Basic '. $clientId.':'.$clientSecret, 'Content-Type:application/json' ); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); but still the same result? How should be cURL request in PHP to be the same as the cURL request from command line? I have …
Re: Curl and new gamespot search
Programming
Web Development
16 Years Ago
by langsor
I'm not getting the nested-body content of the Gamespot page using cURL ([I]probably relative linked iframe[/I]) but it appears your PHP script is working in general. If you are trying to figure out how to return these results to a JavaScript function using Ajax and/or get the [I]$url [/I]passed in via Ajax then you need only change your [I]…
Re: curl responses
Programming
Web Development
14 Years Ago
by whiteyoh
hi thanks for your response. is line 17 not the call for this? my page names curl.php is simple a get variable that echo's the id parameter, all within the same domain. Is there a setting i need to use in htaccess to allow for this?
Re: curl responses
Programming
Web Development
14 Years Ago
by whiteyoh
i have to be missing something here. the curl file includes the following but im getting nothing to the screen. [code] <?php echo $_GET['id']; echo $_POST['id']; //You use post in cURL, so I included it for good measure ?> [/code]
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC