Solved

C++ program gives error while fetching files using CURL.

Posted on 2011-02-18
1
539 Views
Last Modified: 2012-06-21
Dear Experts,

I wrote a C++ program in HP-UX 11.23 which is periodically fetching data from an FTP server using CURL. The program has been written as a daemon. The problem is as follows:

After some time, while trying to fetch files, the daemon gives FTP error: "Access Denied 500" If I restart the daemon, it becomes OK.

Could you please help me?

BR,
0
Comment
Question by:GurcanK
1 Comment
 
LVL 40

Accepted Solution

by:
evilrix earned 500 total points
ID: 34925971
Is it possible the remote end is disconnecting your service after a period of time? Assuming it doesn't already, have you tried changing the code so that it logs out and then back in again after every attempt to collect data?

Unfortunately there isn't much to go on here so all we can do is speculate. If you can provide more details about how your daemon works that would be helpful.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to Insert a File Using Text Editor 9 90
What is sub-make ? 2 62
centos commands 6 54
If a cell in a range equals "YES" return specific Test. 4 36
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
SSL is a very common protocol used these days when browsing the web.  The purpose is to provide security to communication, but how does it do it?  There are several pieces at work that have to be setup before SSL will even work and it requires both …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question