Ftp or http or what?

I'm trying to figure out which technology to use. Here's what I need to do:
Currently, my boss goes to a website that displays a login form, and eventually he clicks his way to a listing of URLs to data files that need to be downloaded. This other company posting the information uses servlets to retrieve the data and construct these files dynamically (as far as I can tell). We're going to get much more data in, so I need to automate this process.
I initially assumed I would need to try to open an FTP connection to their site in Java, so I was looking at the Apache Commons Net package. I assume that then I'd have to post the initial forms (login, etc) in Java, and then parse the listing page to find the live URLs to the files. However, I don't want to do this (e.g. learn the Apache Commons Net API) if there's a simpler way. For instance, should I be able to use classes like HttpURLConnection in the java.net API to do all of my interaction with their site? All I know is that when I access their site, it's an https connection. If it's not as easy to use stuff that Sun provides, then by all means I'll try to do it with the Apache package.
I just don't want to start coding if my approach is not right!
Thanks for any advice,
Stephen

you can't browse the site structure use a URLConnection..you have to use FTP to do that. You can however download a file using URL connection
URL url = new URL("ftp//login:[email protected]/subdirectory/filename");
edtFTP offer a simple FTP api (much more simplier than Apache)
example:
FtpClient client = new FTPClient(host, port);
client.login(user, password);
client.debugResponses(false); // switch on or off debug of responses
client.setType(FTPTransferType.ASCII); // binary transfer
client.setConnectMode(FTPConnectMode.PASV);
String dirListing[] = client.dir(".", false); // get directory
etc..
I think it's free
http://www.enterprisedt.com/downloads/ftp/faq.html

Similar Messages

  • Ftp over http authentication

    Hi,
    we have problem opening FTP sites that require authentication.
    When I try to open a ftp site, example ftp://site.com, I get this message in the browser :
    Authentication is required by the FTP server ( ftpserver.com ). A valid user ID and password must be entered when prompted.
    In some cases, the FTP server may limit the number of anonymous connections. If you usually connect to this server as an anonymous user, please try again later.
    But I didn't receive authentication prompt at all
    I think we didn't have issues with the previous versions...

    Are you using IE by chance?  If yes, try accessing the FTP server using a different browser.  IE has a known issue that such that it doesn't prompt end users to enter FTP server credentials when the user goes through any proxy (not just the WSA).  We just decided to add this to the WSA release notes as a "known issue" with the different workarounds listed. You'll see it in the next version of the 7.5 release notes when that comes out someday.  Here's what the bug write-up will say:
    Defect ID 5463
    Users cannot access FTP servers that require server authentication using FTP over HTTP with Internet Explorer. This is a known issue with Internet Explorer when communicating with web proxies. This is due to Internet Explorer never prompting users to enter the server authentication credentials.
    Workaround: To access FTP servers that require server authentication, use one of the following workarounds:
    Use a different browser, such as FireFox or Chrome, to access the FTP server.
    Use an FTP client that uses native FTP to access the FTP server.
    If users must use Internet Explorer, they can prepend the username and password into the URL. For example: ftp://USERNAME:[email protected]@ftp.example.com
    54636

  • Can anyone help me answer whether Robohelp has a secure ftp (sftp) or secure http connection protocols?  it only lists ftp or http, but not specifying if secure? Thanks.

    Can anyone help me answer whether Robohelp has a secure ftp (sftp) or secure http connection protocols?  it only lists ftp or http, but not specifying if secure? Thanks.

    Hello again
    First off, sorry for confusing anyone with the WYSIWYG reference. Failed attempt at humor. Ah, live and learn.
    Can you expound on what you mean when you say: But there does seem to be “disagreement” regarding whether RH supports HTTPS?
    If you are only referring to this thread, are you sensing "disagreement" because Willam said you can serve content to users?
    Here's the deal. I sort of "read between the lines" with your post and made an assumption and it seems I may have needed to ask you to clarify before tossing an answer out. The assumption I made was based on your statement of: it only lists ftp or http
    That made me believe you were referring to the Publish section in the Single Source Layout properties. (shown below)
    This dialog allows you to specify a protocol used to UPLOAD your generated content to a server.
    What Willam was referring to was the END USERS viewing the content AFTER it has been uploaded.
    Cheers... Rick

  • FTP or HTTP

    I would like to allow somebody OUTSIDE my home network (actually in a different state) to be able to download a file from my Mac using SFTP (preferred) or HTTP.
    When I turn on Web Sharing, it shows my computer's address as being 192.something, which I know is only inside my local network. How would I find out what the address is from outside and which port in my FIOS router do I have to open for SFTP? So I have to make any changes to my Time Capsule's (this is between my computer and the FIOS router) configuration to allow this?

    I've not tried this myself, but the FTP and HTTP ports on the computer are "standard." See: "Well Known" TCP and UDP ports used by Apple software products.
    In your TC's network configuration you will find the actual IP address assigned to you via your FIOS modem. You will want to check it shortly before you open the access to someone because periodically the address may change unless you've been given a static IP address.
    It may be a lot easier to zip the file and email it to your friend.

  • WCCP on ASA for FTP over HTTP

    Hello,
    We have a WSA appliance that we have in explicit mode and want to configure as transparent. The protocols we cache and analyze with WSA are HTTP, HTTPS, native FTP and FTP over HTTP.
    Is there a service number on WCCP for FTP over HTTP protocol? Or it is included within HTTP?
    Thanks a lot in advance.
    Best regards,
    Igor

    Igor,
    The service number 60 (ftp-native service) only applies  to transparent redirection of FTP native requests and does not apply to  FTP-over-HTTP requests.
    On the other hand; the Content Engine listens for redirected HTTP  requests on the standard HTTP port (default port 80). To enable the  Content Engine to listen for WCCP-intercepted HTTP traffic on ports  other than the default port, configure the custom-web-cache service (98 and 99) or a  user-defined WCCP service (services 90 to 97).
    I hope this helps.
    Regards,
    Juan Lombana
    Please rate helpful posts.

  • Ftp and http access over XDB repository is not allowed...

    When I try to execute the following command on a reasonably fresh Oracle 11 installation:
    insert into "XMLTEST" ( "name", "xmlfof" ) values ( 'small', DBMS_XDB.GETCONTENTXMLTYPE('/public/small.xml') );
    -- The schema is correctly registered, the file "small.xml" is in the /public repository folder, the user has every conceivable role and priviledge
    -- http access works fine from a remote location, tried to execute the command on the server and from remote system...
    I get the following error message:
    ORA-31020: Der Vorgang ist nicht zulässig, Ursache: For security reasons, ftp and http access over XDB repository is not allowed on server side ORA-06512: in "XDB.DBMS_XDB", Zeile 1915
    Searching for an answer on the forum didn't produce any concreate explanation... Does anyone have any idea how to solve this problem?

    As it turns out, the XML file contained a reference to a DTD at an external web-site, which caused the problem - it was identical to that described here:
    Re: ORA-31020 when using XML with external DTD or entities
    After removing the reference, everything works perfectly...

  • TS1398 I tried to connect to I-book store and keep getting a message saying "to many HTTP redirects" what does it mean

    I tried to use i_pad book store but keep getting a message "to many HTTP redirects"what does this mean help regards winwillblue blue

    Hi
    Sorry I was away for a while – how do I run check disc on windows 8. The laptop is new and is an Aspire V17, I believe it has a high spec and therefore should have no issues??
    Phil
    (Phil Dickinson)

  • Scripting with FTP and HTTP

    Hi All,
    To help us with future planning, we would like to get a feel for how many developers are using the FTP and HTTP objects that are available with scripting in CS3 (through webaccesslib). If you are using them could you send me a quick email describing how you use the component? My email address is [email protected]
    Thanks in advance.
    Alan Morris
    Dev Tech Engineer
    Adobe Systems

    Yeah, this is so aggrevating!
    Adobe builds all of these cool ideas, then doesnt test them.
    The HTTPConnection object does not do POST at all. I have tried nearly every possibility. The documentation is either way off or the object just does not work. I can see the post in raw form and the POST variables are not coming across.
    After working on this for a few hours i thought to myself, hey maybe i should just create a flash pane instead and load the files into it, then have the flash object upload. Well i ran into a big fat wall there too! As it is with patchpanel and bridge, these technologies only accept swf objects. This whole concept of using SWF and crossscripting has a huge flaw. The SWF file's security format does not allow for local file access for doing simple things like upload. If i can't synchronize file data to web based clouds, then i cant do much worth talking about.
    I love these products and their possibilities but i have to have the ability to communicate with the world. HTTP is the way!
    Also a side note, FTP is an insecure/inflexible solution and looks like a lot more time was spent on this aspect of the scriptable product.
    PLEASE HELP ADOBE!!!!!

  • If my Phone is saying HTTP Failed what is my problem

    if my Phone is saying HTTP Failed what is my problem

    Hi hop2it.1,
    This will usually occur when the device is unable to connect to a network or the internet. I would recommend takign a look at the troubleshooting steps in the article below. 
    iOS: Troubleshooting Wi-Fi networks and connections
    -Griff W. 

  • Ftp or http mirrors?

    What are the pros/cons of using one or the other?

    Depending on your situation, one or the other may be firewalled (ie, in a corporate environment) so you would have to use the other (or a proxy).
    In theory FTP should be faster, but IME it usually isn't.
    EDIT: A HTTP mirror could use redirects to send your requests to other locations. This could be a good thing (tm) or a bad thing (tm) depending on how it is used. I don't recall ever seeing an Arch mirror do this.
    Last edited by fukawi2 (2011-02-01 09:25:42)

  • Ftp or https

    so i'm pretty dumb when it comes to understanding how this works. i've got a program that should allow me to connect to some server where we store our stuff online. classic ftp i think it is. however, when i type in our address, it tells me i need an ftp address, but i don't have one of those. the address is an https://st38.startlogic.com and i login from there. what program do i need to be able to upload stuff to startlogic? or am i totally missing the whole thing?

    Hi
    Ordinarily this would work but it seems the address the OP has been given does not recognize ftp connections.
    If you try connecting by keying in ftp://st38.startlogic.com in the Finder (command+K from the Go Menu) the Finder returns a 'The Finder cannot complete the operation because some data in "ftp://st38.startlogic.com' could not be read or written. (Error code -36). You get the same error if you launch a browser and key in the same thing in the url. The only thing that seems to work as far as I can see based on the OPs information is by keying in https://st38.startlogic.com:8087/panel/index in the url of any web browser that the OP may be using. Interestingly if you use anything other than Firefox on the mac platform you get a message telling you that the site does not currently support those applications. If you key in: http://st38.startlogic.com:8087/panel/index in the url you receive a 'Bad Request' error stating that a connection is being made using plain HTTP to an SSL-enabled server port with a redirect to use the secure port (https). Now I know you know this but it seems that the OP probably does not and is (perhaps) confused by the jargon being used and/or the original instructions given him that prompted this post in the first place.
    From what I can see https://st38.startlogic.com:8087/panel/index appears to be a secure portal for building a web-site or for possibly uploading/downloading from a secure website.

  • Creating ftp site/server?  what do i need?

    Assuming I have a spare mac and a broadband connection...what else do i need to create an ftp server.
    Or is there a better way to achieve my needs...ie. to share large files (1.5gb each) with one or two other companies at the other end of the country (uk) !
    what security would i need on the mac, and how do i administer such a setup?
    i'm a complete novice to this area of computing so please be simple in explanations!!
    thanks
    Adam

    Since you're a novice you might find it easier to use a friendly front end to an ftp server rather than running the built-in server. Take a look at PureFTPd Manager:
    http://jeanmatthieu.free.fr/pureftpd/

  • FTP and HTTP large file ( 300MB) uploads failing

    We have two IronPort Web S370 proxy servers in a WCCP Transparent proxy cluster.  We are experiencing problems with users who upload large video files where the upload will not complete.  Some of the files are 2GB in size, but most are in the hundreds of megabytes size.  Files of sizes less than a hundred meg seem to work just fine.  Some users are using FTP proxy and some are using HTTP methods, such as YouSendIt.com. We have tried explict proxy settings with some improvment, but it varies by situation.
    Is anyone else having problems with users uploading large files and having them fail?  If so, any advice?
    Thanks,
       Chris

    Have you got any maximum sizes set in the IronPort Data Security Policies section?
    Under Web Security Manager.
    Thanks
    Chris

  • Ftp over http proxy

    Hi Experts,
    As per sap notes using n/w proxy in ftp adapter is not possible.
    Please let me know what are the possible workarounds.
    Regards,
    Ayush

    hi
    please check your F/W settings.
    and if you can setup FTP on the PI server, you should test on the PI server as FTP server.
    youll find waht is the problem.
    naoki

  • Safari can't open a website because Mac OS X doesn't recognize Internet addresses starting with "http:". WHAT??

    Today I have been receiving intermittent error messages while running Safari v5.0.6 on my iMac running Mac OS X v 10.5.8 that Safari cannot open internet sites starting with https: or http: because OS X does not recognize https: or http:. It seems to be happening when I try to click on links within pages directing me to other info (on secure web pages).
    Clearly there is something very weird going on, as obviously this site is one that starts with https: and I am here posting to the community. Has anyone else seen this?
    What is this all about? It worked fine yesterday - I have made no changes to anything. Safari has been running like a slug the past few weeks. I have Apple auto update set to check for updates daily - so I truly have no idea were this is coming from. Any guidance would be apprecited! Thx -

    Hello  - anyone have any comments for me on this? Thx -

Maybe you are looking for

  • How to access proxy settings in terminal

    I want to use git in the terminal, but unfortunately I'm sometimes (but not always) behind a firewall that requires me to use a proxy server. I've successfully set up environments for all these locations, including the proxy settings that are relevan

  • Cannot start Backup of Azure VM Windows Server

    Whenever I start a backup of an Azure VM, I get the following error message: Snapshot VM sub task timed out. Please retry the operation in a few minutes. If the problem persists, contact Microsoft Support. I contacted Microsoft Support, but they told

  • Soap- XI- RFC scenario problem

    Dear all, i am configuring a scenario like SOAP->XI->RFC.the third party software send the PM notification  message to R3 via XI and the notification is created in R3.now i am facing the problem that the scenario works fine but i can't monitor the me

  • Allowing third party cookies on safari

    I just got my Mac and upgrades my OS to Yosemite. I haven't had to use the website before i downloaded Yosemite so I don't think it has to do with that. I can't find anything about cookies in my settings. My OS is 10.0, don't know about the IOS

  • Curve 9360

    Suddenly the phone will not connect to the desktop and after trying various things I attempted to update the blackberry desktop information. I got a failed message so tried again, with same result which states: A DLL (? what is this?) required for th