Solved

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

Posted on 2011-02-18
1
541 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
The article explains the protocols and technology which is involved when two computers on different TCP/IP networks communicate with each other. In the diagram, a router is used to segregate two networks. The networks are 192.168.1.0/24 and 192…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

696 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