Skip to main content

All Questions

Tagged with
1 vote
1 answer
40 views

How to get Referrer value using CURLINFO or cURL

How to get Referrer value from cURL URL? I am trying something like this but not working. $curldomain = "https://www.example.com/"; $ch = curl_init($curldomain); // Set cURL options ...
JK Sandhiya's user avatar
1 vote
1 answer
49 views

Is possible to spoof HTTP Header Referer value using cURL

Let say, my website is https://www.example.com and i am using cURL to pull https://stackoverflow.com I am using cURL HTTP Header to spoof referer value like this curl_setopt($ch, CURLOPT_HTTPHEADER, ['...
Stellan Coder's user avatar
1 vote
1 answer
29 views

cookie jar not saving cookies

function 3rd_party(){ $cookie_path = __DIR__ . '/cookies.txt'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'xyz.com'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); ...
Pradeep's user avatar
  • 11
2 votes
0 answers
59 views

When using curl_multi_* there is around 20 iterations for one request despite curl_multi_select use. Why?

From the documentation for the curl_multi_select: Blocks the execution of the script until a cURL handle attached to the cURL multi handle would be able to make progress on the next call to ...
Mike's user avatar
  • 81
1 vote
1 answer
56 views

php curl receveive 302 response code from OVH

In the last few days/weeks, a webservice call from php curl to a service located in OVH has started receiving a "302" HTTP Code response I thought the calling server was blacklisted. But the ...
VinceSax Maury's user avatar
1 vote
1 answer
87 views

CURL (PHP) works locally but it doesn't on remote server (curl_error #26)

I try to send photo via Telegram bot, so I wrote the code (a part of it): $img_path = "https://www.example.com/path/to/file.jpg"; $method = "sendPhoto"; $arrayQuery = array( &...
Sashik259's user avatar
0 votes
0 answers
40 views

Cookie curl on two ec2s

My old project code is saving curl cookie to temporary file as below curl_setopt($ch, CURLOPT_COOKIEJAR, dir_tmp); curl_setopt($ch, CURLOPT_COOKIEFILE, dir_tmp); it is running on 1 ec2 Now need to ...
TruongGa's user avatar
0 votes
0 answers
3k views

Failed to connect to 18x.130.1x5.xxx port 10000: Connection timed out

I opened vps from azure ubuntu 20.04 and installed cyberpanel here, then I opened all incoming and outgoing ports in azure, I installed script, this script sends curl with proxy but I get error "...
hummorrrflov's user avatar
0 votes
1 answer
46 views

CURL - Sending PDF failing with Laravel

I'm sending a PDF file via CURL in Laravel: <?php namespace App\Http\Controllers\EmailSender; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable;...
Erbi Silva's user avatar
0 votes
0 answers
57 views

PHP 7 CURL post request over 1024 characters timing out

I'm working in a Cake PHP 2 project running PHP 7.4. I'm trying to make a POST request via CURL to a server. I'm getting some odd behaviour with CURLOPT_POSTFIELDS. I need to send my data as an ...
Ryan H's user avatar
  • 3,005
0 votes
0 answers
33 views

I want to display the data I got from the fake api with the curl method

I want to display the information I received from the fake api using the curl method using foreach, and I get the following error: Trying to access array offset on value of type int <?php $...
Reza Movahhedy Nasab's user avatar
1 vote
0 answers
1k views

Apache/2.4.59 - PHP 8.3.6 Uncaught Error: Call to undefined function curl_init()

I'm encountering an issue loading cURL into my PHP environment on Windows. Here's what I've attempted: I installed Apache on my server (Windows server 2016) and PHP 8.3.6. However, when I run php -m ...
executable's user avatar
  • 3,620
0 votes
0 answers
119 views

My PHP cURL Proxy isn't working and/or loading images or other files

I've tried making many proxies with PHP but they all end up with either headers not loading properly or images not loading properly. I'm very new to PHP and I've looked up how to make one but for my ...
RandomWebDev's user avatar
1 vote
0 answers
78 views

cURL response returns data in Postman, but returns NULL data set in PHP

I'm trying to query a database from Google AppSheet via cURL. It works 100% in Postman (returns results), but when I copy the code into PHP it returns a NULL set (connects, but doesn't return results)....
Max G's user avatar
  • 11
1 vote
0 answers
26 views

shopify REST Admin API Response header doesn't includes a URL for the next page of results [duplicate]

According to the official shopify documentation , "https://shopify.dev/docs/api/usage/pagination-rest#make-a-request-for-paginated-data" there will be a link to the next page in the response ...
sam707's user avatar
  • 85

15 30 50 per page
1
2 3 4 5
41