Questions tagged [php-curl]

PHP cURL extension for HTTP requests

PHP supports libcurl, a library created by Daniel Stenberg, that allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHP's ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication.

These functions have been added in PHP 4.0.2.

Source

1306 questions
0
votes
0 answers

XML sent by PHP Curl

I've written some code that is attempting to send data from mySQL database in xml form via phpCurl to another server. No error appears but how do I test if its correct? Can anyone spot any errors?
BoDrok
  • 27
  • 3
0
votes
2 answers

Integrating PHP Curl

I have the code below which calls up an MySQLi and presents it in XML form in my browser. The next stage is that instead of presenting it in my browser I want to send it to another IP address using PHP Curl. Please can someone help me with the extra…
BoDrok
  • 27
  • 3
0
votes
1 answer

Unexpected 401 Error on Live Server related to processing PHP Curl API

Problem On production server, my code (See below) produces an unexpected 401 error. However, it works fine on my development server. I have been trying to fix performance caused by the unexpected 401 error. Since my code works fine on Development…
user4860737
0
votes
1 answer

How to convert mp3 format data to mp3 file using php?

I am making PHP curl call and getting mp3 format raw data. How do i convert that raw data to mp3 file. My code is: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_HTTPHEADER,…
Mj.
  • 321
  • 1
  • 6
  • 13
0
votes
1 answer

curl google maps not working share hosting server

I tried to get Google Maps with postcode using curl before it worked properly, but now it is not working, it gives me random Google Maps position. The following code is used on this website. function map_apper($address,$big=""){ $address =…
0
votes
0 answers

Call to undefined function curl_init() php 5.6.7 without wamp

note: I am not using wamp or xampp My system Windows 8 on azure vm php-5.6.7-Win32-VC11-x32 Apache 2.4.12-win32-VC11 I did uncomment "extension=php_curl.dll" but still i am getting this error--->Call to undefined function curl_init() To solve this…
alagu
  • 586
  • 1
  • 4
  • 12
0
votes
2 answers

php curl is not working ,returning empty page , how can i emulate real browser

I want to fetch some details from a website , my code is working fine in wampserver but when i uploaded the file on a real server i am not getting any result ,its showing me an empty page here is my code.
51j0
  • 51
  • 1
  • 10
0
votes
2 answers

Remove DEBUG information from amazon mws php api

When I am using the Amazon MWS php API in a linux cli the code is returning a load of bebug information - output starts with:- About to connect() to mws.amazonservices.co.uk port 443 (#0) Trying 178.236.4.102... connected Connected to…
l0ckm4
  • 757
  • 5
  • 17
0
votes
2 answers

User IP For Curl Instead Of Server IP

I have the code below in one of my scripts but every time it runs it uses my IP address. How I can make it use the IP address of the user? I was reading about curl_setopt() which allows you to set the IP address. Can someone assist me with that? $ch…
user2002220
  • 115
  • 1
  • 1
  • 10
-1
votes
1 answer

using php curl to get login token

I am trying to use php curl to get the login token from an external webpage but the login token I'm receiving is different from the actual one. Could someone please tell me what I'm missing. $ch = curl_init(); url_setopt($ch, CURLOPT_URL,…
Haya
  • 19
  • 5
-1
votes
1 answer

How to add tracking details to an order in shopify using php

I have been using the following code in Shopify to handle order fulfillment. It was functioning correctly until last week, but suddenly it stopped working. Despite attempting various solutions, the issue remains unresolved as the response I receive…
Aniskonig
  • 31
  • 8
-1
votes
1 answer

OpenAI GPT-4 API error: "The model: gpt-4 does not exist"

I have code as below, it works perfect with model gpt-3.5-turbo but not with gpt-4: $your_prompt = "Prompt...." // GPT-4 API call $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://api.openai.com/v1/chat/completions'); curl_setopt($ch,…
-1
votes
1 answer

Php curl multipart/form-data request failed

I’m under to try getting response from oracle bi publisher using php-curl with header as multipart/form-data but the result it’s Request failed I’m trying also to getting the code from postman directly because it work fine with it but also result…
TRIKI_Sami
  • 79
  • 1
  • 9
-1
votes
1 answer

How to apply for Paypal AppID & Download Invoice Details (with PHP examples)

I know there’s lots of posts on this subject but I have read dozens and in every one that contains a link, I get a 404 error when I follow it to PP website and PP website help is very sparse and half their own links product 404 errors also. I have…
David Crawford
  • 199
  • 1
  • 7
-1
votes
1 answer

Add Delay/Sleep in between url requests in multi cutl php

I am fetching json data from api which allows me to hit 1 request per minute. Currently using multi curl but don't have idea how to execute curl after every 60sec so that i can get the 10 json file from 10 different url/api request in 10 minutes.…