forums_mp
asked on
ftp using boost regex
Need to ftp a file to directory. It appears boost regex might be a good library to use to achieve the objective. Need code that does just that.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Maybe i misunderstood the link
http://www.boost.org/doc/libs/1_39_0/libs/regex/doc/html/boost_regex/ref/regex_match.html
It's unclear to me how to change directory from the stack overflow example
>> Maybe i misunderstood the link
There is an example on that page that parses an FTP response by using regular expressions. However, to get that response, you need an implementation of the FTP protocol. libcurl provides an implementation of the FTP protocol, and it looks like boost asio also does (I've never used it for FTP though, so I can't vouch for it heh).
There is an example on that page that parses an FTP response by using regular expressions. However, to get that response, you need an implementation of the FTP protocol. libcurl provides an implementation of the FTP protocol, and it looks like boost asio also does (I've never used it for FTP though, so I can't vouch for it heh).
>> I've never used it for FTP though, so I can't vouch for it heh
Personally, I'd use libcurl but I thought I'd try check that it wasn't just confusion over which boost library we were discussing.
Personally, I'd use libcurl but I thought I'd try check that it wasn't just confusion over which boost library we were discussing.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
http://www.boost.org/doc/libs/1_46_1/doc/html/boost_asio/overview.html
This looks like an example of using it for FTP.
http://stackoverflow.com/questions/3931805/how-to-resolve-ftp-site-using-boost-asio