cURL is a library and command-line tool for transferring data using several protocols such as HTTP, FTP and Telnet.
0
votes
0answers
5 views
Curl ignores the -r switch when -C is present
I wanted to download a part of a file. (Let's say http://mysite.com/myfile.zip)
So I used this command:
curl -r 200000-400000 -O http://mysite.com/myfile.zip
Unfortunately my Internet ...
0
votes
0answers
12 views
Create virtual page on wordpress while clicking on external links
I would like to implement external pages on my own.
I use this function
function callframe(){
$ch = curl_init("http://www.external.site");
curl_setopt($ch, CURLOPT_HEADER, 0);
echo ...
0
votes
0answers
7 views
Send and received http headers with Codeigniter RESTserver
I am building a RESTful API using Phil Sturgeons RESTServer. I've got it working fine and responding as I want it to using file_get_contents but I am building it for someone else to use and they will ...
0
votes
1answer
63 views
PHP $_POST not clearing itself in loops and causing errors
I"m using a PHP script to access a remote server with cURL to process some photo gallery info and files. When I process this function, I get 4 of everything because there are 4 photos, so somehow the ...
0
votes
1answer
16 views
XML parsing error in PHP after CURL
I have obtained such a response after executing one curl request.
<?xml version="1.0" encoding="utf-8"?>
<mp_response>
<response_element>
<merchantid>
36573dkjdkjds3987398
...
0
votes
0answers
34 views
API call works in browser, but reports (incorrect?) redirect when called via PHP curl
I have to build a script that convert the JSON we get from our partner company's API into an Xml file that our current software can read without much changing. Sounds simple enough, and the API is ...
1
vote
0answers
8 views
Convert cURL post into HTTPclient and HttpPost. Getting Http 403 Error. [JAVA]
My cURL:
curl URL -X POST -d '{"longitude":"5.55", "latitude":"6.66", "place":"hello world", "description":"this place is accessible by wheelchair"}' -u user:password -H 'Content-type: ...
0
votes
1answer
9 views
Azure Mobile Services use from command line for testing
I have a Windows Azure Mobile Service that works great with the official clients. However, it would be better if I could run my tests from command line scripts without having to write and compile ...
-1
votes
0answers
8 views
unable to post to HabitRPG API via curl [closed]
Ugo Landini's Pomodoro allows start / stop custom scripts, and I found this code that should let me post to the HabitRPG api:
do shell script "curl -X POST -H 'Content-Type:application/json' ...
0
votes
1answer
16 views
wget and curl somehow modifying bencode file when downloading
Okay so I have a bit of a weird problem going on that I'm not entirely sure how to explain... Basically I am trying to decode a bencode file (.torrent file) now I have tried 4 or 5 different scripts I ...
0
votes
2answers
26 views
How to get javascript-generated content from another website using cURL?
Basically, a page generates some dynamic content, and I want to get that dynamic content, and not just the static html. I am not being able to do this with cURL. Help please.
0
votes
1answer
15 views
system() won't accept variables in my wget request
I am at my whits end with this. I have finally gotten wget to grab the page I want, how I want it, but I am unable to pass variables in to the system() function in order to loop through all the URLs I ...
0
votes
0answers
11 views
Cookie based sessions for the browser, what about API calls using cURL?
For my site, the browser and API calls will land on the same page.
If the browser is using a cookie to authenticate itself, it seems like a hassle(and wrong) for cURL to implement cookies to ...
0
votes
1answer
31 views
getting html source code with dynamic content to do regular expression analysis
In My project I need to get the html content of another webpage in our server. The problem is that particular page has some dynamic content and I need the data in that content to do a regx analysis.
...
0
votes
0answers
5 views
run chrome WebInspector http HAR with php
I make request and save it's HAR from chrome webinspector.
I need run it with php script.
Maybe it can be with curl?
i tried copy as curl from chrome and run as shell_exec and exec, but it not work