?
Solved

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

Posted on 2011-02-18
1
Medium Priority
?
549 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Suggested Courses
Course of the Month8 days, 23 hours left to enroll

764 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