473,386 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

curl_exec() returns partial response with CURLOPT_RETURNTRANSFERon?

I'm trying to use the curl functions to retrieve a page from a remote
webserver and save the content in a variable for further processing.

I go through the process of curl_init(), curl_setopt(), and curl_exec(),
but when I have CURLOPT_RETURNTRANSFER on, curl_exec only returns part
of the remote page. When I turn CURLOPT_RETURNTRANSFER off, the entire
remote page gets sent to my browser.

So what do I need to do to get curl_exec() to return the complete page
with CURLOPT_RETURNTRANSFER on? Is there something I'm missing? I've
investigated CURLOPT_BUFFERSIZE and CURLOPT_WRITEFUNC; the first doesn't
seem to work, and I can't figure out how to use the second to do what I
want.

Any advice would be gratefully appreciated.
Jul 17 '05 #1
0 1989

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: rik | last post by:
I am using the CURL_EXEC function to obtain a webpage. However, I would like to be able to amend the data I have remotely obtained before printing it out. The CURL_EXEC function automatically...
7
by: Julian Jelfs | last post by:
Hi, I had an aspx pag in .Net 1.1 with a label on it. As such I had a code behind page with a declaration for that label. When I convert to Asp.Net 2.0 the code behind is converted to a...
10
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought I’d be able to create another class file, call it a partial class and have that compile and...
0
by: cnSoftware | last post by:
I come across this problem during my recent project and even now I am still be puzzled by it. So I paste the procedure here. I wish you can figure out where I am wrong or missing. The sample...
1
by: the4man | last post by:
Hi all!! I have a very stupid and simple project, just for testing, with only one page (default.aspx), and one user control. The user control only shows the time in an asp:literal each time the...
6
by: Ken Cox [Microsoft MVP] | last post by:
Hi folks, I need some help with an ASP.NET 2.0 page that generates the following error when it calls a VSTO runtime DLL: System.Security.SecurityException: That assembly does not allow...
6
by: Rolf Welskes | last post by:
Hello, I want to partial cache by using a UserControl. Now I have a file dependency. In msdn I see it is not possible to do it the same way as in a page. The only information is to create a...
2
by: Uldis Bojars | last post by:
Hi All, I have encountered problems with JS RegExp.exec() and can't find what is the problem. Could you help me? formRequest is a function that extracts some information from XMLHTTPRequest...
4
by: =?Utf-8?B?U2NvdHRSYWREZXY=?= | last post by:
So I have this problem. I'm currently involved in a team project that has a nightly build on a build server and a continuous integration build on the same server. We want to build our c# program...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.