Solved

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

Posted on 2011-02-18
1
546 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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 …
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…

718 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