Skip to main content

All Questions

Tagged with
0 votes
1 answer
47 views

Python Post Request works, but the same PHP (CURL) does not work

I was trying to write the same post request via php as i did in python. In python it works well, while in php it does not even reach the server at all. This is php 7.4. Also I can access the server ...
Brana's user avatar
  • 1,239
0 votes
0 answers
56 views

How can I make Requests library work identical to file_get_contents?

I am using https://requests.ryanmccue.info/ for my PHP requests and it is not working for one specific request to a Roblox API. My Requests code (not working): <?php require_once "src/Autoload....
user avatar
-2 votes
2 answers
39 views

Can someone help me learn how to covert this php CURL to Python Requests [closed]

so if someone can help me convert the following php curl oriented into python using requests i have no idea where to start. $data = [ 'username' => "[email protected]" ]; ...
O Sab's user avatar
  • 1
0 votes
1 answer
124 views

Translation needed for www.mirrored.to api php code to python

<?php //***EDIT THE FOLLOWING ***// $api_key = "abcdefabcdefabcdefabcdef"; //Your API Key //***EDIT END ***// $url = "https://www.mirrored.to/api/v1/get_account_info"; $post =...
Murphy Kwok's user avatar
0 votes
1 answer
117 views

php curl on live server issue

please help me. I'm trying to making instagram downloader. I run this code and collect photo/video url from post. <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://www....
Al Sayeed's user avatar
0 votes
0 answers
54 views

Hello, I did a study with Php curl, the response is not responding as I want. Where is the problem?

I did a study with Php curl, the response is not responding as I want. Where is the problem please help. Response: Array ( [timestamp] => 1611484830616 [status] => 415 [error] => Unsupported ...
Bilal İnal's user avatar
1 vote
4 answers
419 views

How to format payload for Kartra API in Python

I'm trying to make an API post call to this Kartra Inbound API using Python requests.post. Here is my Python code: payload = { 'api_key': settings.KARTRA_API_KEY, 'api_password': settings....
Bill Huang's user avatar
0 votes
0 answers
209 views

jQuery File Upload: cURL file uploads working, Python requests not

I'm trying to figure out the cause of this issue. I am using requests to POST files using the file uploader https://github.com/blueimp/jQuery-File-Upload I am running Ubuntu 16.04 LTS to send the ...
Don Vasquez's user avatar
0 votes
2 answers
519 views

How can I accomplish this PHP curl request to get response from an API with Python?

Consider the following PHP code that summarizes text from a URL: $url = 'http://www.my-website.com/article-123.php'; $webService = 'https://resoomer.pro/websummarizer/'; $datasPost = 'API_KEY=...
Sanjeev v's user avatar
  • 226
0 votes
2 answers
1k views

PHP Curl vs Python Requests

I am currently writing a piece of code to interface with an API in Python. Supplied by the company that hosts the API is a PHP script that logs into the API given the correct username and password, ...
Andrew Young's user avatar
-1 votes
3 answers
523 views

Converting a CURL script to Python3 + requests

I have a short CURL script that I'm trying to convert to Python, but I'm having a decent amount of trouble doing so. I'm targeting an API that requires an auth string that is formatted <public_key&...
Ralph's user avatar
  • 385
1 vote
2 answers
736 views

Converting PHP Curl queries to Python requests

I've been facing a few problems trying to convert the following PHP curl queries to Python requests. Given PHP Code $cfile = new CURLFile($filePath,$fileType,$filename); $request='{"signers":["abc@...
Sudheesh Singanamalla's user avatar
2 votes
3 answers
1k views

How to replicate cURL and python's 'requests' library in PHP?

I have following code in Python that is working good (have access): import requests username = 'user' password = 'pass' r = requests.get('https://internalwebsite/list', auth=(username, password)) ...
Joe's user avatar
  • 13.2k
1 vote
1 answer
2k views

Proccessing Multiple cURL requests in PHP faster

I am trying to speed up my website by processing the cURL requests efficiently. I am running about 3 requests, two go to the same server. Here is my code: $profile = curl_init(); curl_setopt($profile,...
Redbit's user avatar
  • 46
0 votes
1 answer
1k views

Why might I be getting a 500 Error when using Python Requests, but not using cURL

I am trying to work on a basic implementation of the Synchroteam API using python's requests. I was able to establish a connection using cURL as a proof of concept and get all the data I wanted, but ...
A. Cabiness's user avatar

15 30 50 per page