Webcrawler issue: Downloads different file than the one visible in browser

Hi Everyone,
I am using a webcrawler to download webpages from a site. But it seems to be downloading different HTML files from the ones I can see in the browser. Someone suggested that I might try and setRequestProperty() to fake a browser.
Could anyone tell me how to do that? I would really appreciate that. A pointer to a website would also be great...
Thanks,
Sameer

Hi All,
Thanks for the replies. The program can download the HTML pages correctly, apart from one missing column in a table in each page (which happens to be important for me!).
I am getting the HTML files using HttpURLConnection.
It has been pointed out to me by another someone :) that this might be due to the fact that the site requires a login, which I completely forgotten when writing the code. So that someone seems to suggest that adding code for setting cookies might solve this issue. Can anyone lead me through the process briefly? Or point me to documentation?
Thanks again,
Sameer
What do the files you get look like ? Error pages ?
Default pages ? How are you getting them ? HTTP by
hand ? HttpURLConnection ?

Similar Messages

  • When I select "open a new tab" the tab opens in a different window than the one I'm using. This is release 11.0, and did not happen in 10.0

    When I select "open a new tab" the tab opens in a different window than the one I'm using. This is release 11.0, and did not happen in 10.0

    Hi,
    Please check if '''Open new windows in a new tab instead''' is enabled in '''Tools''' ('''Alt''' + '''T''') > '''Options''' > '''Tabs'''. [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Tabs%20panel Options > Tabs]. If the problem persists, please also check if this happens in a [https://support.mozilla.org/en-US/kb/Managing-profiles new profile]. If the new profile is okay, you can later [https://support.mozilla.org/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile?s=profile&r=1&e=sph&as=s copy the needed personal data] from the old profile. Firefox stores your personal data and settings in [http://kb.mozillazine.org/Profile_folder another location (profile folder)] separate from its [http://kb.mozillazine.org/Installation_directory files/folder]. A new profile would have the default Firefox settings ('''Tools''' ('''Alt''' + '''T''') > [https://support.mozilla.org/en-US/kb/Options%20window '''Options'''], and [http://kb.mozillazine.org/About:config about:config] ), and usually would also be empty of any '''Extensions''' and themes ('''Appearance''') in Tools > Add-ons) and their settings. Also, a new profile would have no previous stored website data/settings etc., ('''Tools''' > [https://support.mozilla.org/en-US/kb/Clear%20Recent%20History '''Clear Recent History''']).
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder & Files]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]

  • Can i lock an app on my iPhone with a different password than the one i use to lock my phone?

    can i lock an app on my iPhone with a different password than the one i use to lock my phone?

    This should work; one of my e-mail accounts is my own domain through Gmail.  Make sure your username is set to your full e-mail address (like [email protected]) rather than just your username.
    Did you set it up on your iPhone as an IMAP account, or as a Gmail account?  It should work perfectly using the Gmail setting.  It can work as IMAP, but you need to jump through a few hoops to get there.

  • When Pages has to update it asks me for a different email than the one I use, What do I do?

    When Pages has to update it asks me for a different email than the one I use, What do I do?

    Update it from that Apple ID, or delete and redownload it.
    (111534)

  • My podcasts are downloading bigger files than the stated MB's

    In iTunes 11 when my podcast download some download larger files than stated in the download panel. one I noticed said podcast size 213MB but was still downloading at 600+ MB anyone elce noticed this?

    I have the same problem and I use iTunes on a PC. It appears that when a podcast download is broken it resarts from the begining and adds that to what it has already downloaded. So you can end up with the same content in the podcast file over and over.
    I recreated this on a different PC to make certain that it was not because I was using an older PC.The same thing happened. I only noticed it when I started to use iTunes 11.

  • HT2492 Clicking on different widget than the one previously used, brings me back to Desktop?

    Hello,
    I have a problem where if I click on a widget other than the one I previously used, I am taken back to my Desktop. I then have to open dashboard again, to get to the widget i want. I can now use the widget i initially wanted, but clicking on a different widget starts the cycle again. This is really annoying me. How can i fix this?
    By the way, I am running 10.7.3 and I am up to date on all Mac updates.
    Thank-you,
    krm1897

    this one is actually a really rare symptom of a flaky connection to the ipod on a Windows PC. there's more going on in terms of hardware on nanos and 5th gens than in the earlier models ... so if the connection is flaky to precisely the right/wrong degree, itunes will see the ipod, but misidentify it as an earlier version of ipod.
    tracking down the cause of the flakiness can be tricky ... as you already know ...
    just checking. have you tried connecting with a different (known-good) USB cable? does that seem to have any impact on the rate of occurence of the problem?

  • How do I get my burned songs on my iPod to a different computer than the one I synced with when I loaded them?

    How do I get my burned songs on my iPod to a computer other than the one I synced with when I loaded them? I purchased a new computer and want to transfer my library to it. The only sync option I get is to erase the ipod and sync it.

    By using a third-party program like one of those discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities

  • I'm opening a garageband file on a different computer than the one it was made on, and my drum loops are playing as low pitched beeps instead of the jazzy brushes I want. I believe my version is more up-to-date than what I used first. How can I fix this?

    I believe I said it all in the question...

    Could it be that you had more instruments on the old computer? Or haven't correctly installed the instruments on the new one?
    Obviously, GB hasn't assigned a drum instrument to the track that the drum notes are on (my guess: since it doesn't have the desired drum set.) Press cmd-I to make the track info pane visible and pick one of the drum sets for that track.

  • How do I copy backed-up files from an external hard drive back to my MBA, but under a different user than the one from which they were backed up?

    On the advice of the Chicago Mac Genius Bar, in order to get better performance on my few years old MBA, I copied my Home folders (but not Library) to an external hard drive, created a new user, deleted the old user, and tried to copy the Home folder contents from the external hard drive back to the MBA under the new user. However, I get an error message and can't open most of the folders on the external hard drive (e.g. "The folder “Desktop” can’t be opened because you don’t have permission to see its contents.") Help! Thanks.

    As captfred says, yes (as long as the drive is formatted for a Mac, not Windoze).
    You might want to review the [Time Machine Tutorial|http://www.apple.com/findouthow/mac/#timemachinebasics] and perhaps browse [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum).

  • How do I create an action to save as, but into a different folder than the one I used to create the action?

    I am having an issue with my action being created to save under the same folder that my action was created with.  For instance, I opened an image, recorded the action, then I went to a different folder to play the action, but it saves to the previous folder.  How do I add some way to change the folder I want my pics to save to?

    If you want to give Scripting a try paste the following text into a new file in ExtendScript Toolkit and save it as a jsx-file into Photoshop’s Presets/Scripts-folder.
    // saves jpg into same folder;
    // be advised: this  overwrites existing jpgs of the same name without prompting.
    // 2010, use it at your own risk;
    #target photoshop;
    if (app.documents.length > 0) {
    var thedoc = app.activeDocument;
    // getting the name and location;
    var docName = thedoc.name;
    if (docName.indexOf(".") != -1) {var basename = docName.match(/(.*)\.[^\.]+$/)[1]}
    else {var basename = docName};
    // getting the location, if unsaved save to desktop;
    try {var docPath = thedoc.path}
    catch (e) {var docPath = "~/Desktop"};
    // jpg options;
    var jpegOptions = new JPEGSaveOptions();
    jpegOptions.quality = 12;
    jpegOptions.embedColorProfile = true;
    jpegOptions.matte = MatteType.NONE;
    //save jpg as a copy:
    thedoc.saveAs((new File(docPath+'/'+basename+'.jpg')),jpegOptions,true);
    //that’s it; thanks to xbytor;

  • How do I change my Ipad to access Itunes store in a different country than the one I usually use and have my account with?

    I usually use the Itunes application on my Ipad in FRence and use the French Itunes store. I am now in Cyprus and after synchronising my Ipad there I now can access the US Itunes Store but my purchases are refused as my account is with the French Itunes store.  How do I either open an account with the US Itunes store or revert to the French Itunes store on my Ipad?

    synchronising is not the problem i think, you need a new US apple id. i only have a malaysian credit card but i have separate ids for US UK and Malaysia. i have travelled to these 3 countries and have home adresses in each country but for buying stuff, I use an iTunes store card instead of a credit card cos its easier. you do not need a credit card that must have billing address from the same country as the iTunes store. So I would suggest if you are currently based in the US go the nearest apple store buy an iTunes store card (i buy in multiples of US$100 with a credit card) and use your current US home address as the US iTunes address.
    so log off your french iTunes store account, create new US apple id for your iTunes store account using your current US address and then redeem your itunes store card and voila you are set to go. (did i mention you will also need a new separate email address for the new apple id) i have one each from gmail, yahoo and hotmail for each separate id.
    the only drawback is that when you want to do an update for the apps that you buy from the different iTunes store, you must log in to that iTunes store account ie if you buy an app from the US store you must log in and update with the US store id and to update the apps from the French store you must log off from the US store and log in again with the french store id.
    hope this makes sense to you.

  • How tocopy a CD from a different computer than the one I am synced to

    My daughter got a Beyonce CD for Xmas.  Her iPhone has its "synced" library on an iMac27 which do not come with a CD drive anymore.
    So we go to our MBP and load the CD into iTunes there.   Then connect her iPhone so we can transfer the CD onto it.  But everytime time I try to do that I get the dreaded "You can only be synced to one iTUnes library - Do you want to erase your iPhone and sync to this machine" or something to do effect.
    Well I don't want to sync to this computer.  I just want to copy a CD onto her iPhone.
    Why does iTunes insist on making the simplest little things so maddeningly complicated.  All I want is a simple copy. 
    I have her iPhone set to Manually Manage Music and video on the iMac27 but when iTunes on the MBP says that it is set to Automatically Sync and when I try to change it to Manually Manage it says that it will erase all the contents of the iPhone.
    This is sooooooooo irritating.
    Thank you for any suggestions!
    iPhone 4.  iOS 7  iTunes 11.1  Mac OS 10.8.5
    PS:  I tried to do a search on this subject but there are too many keywords and I couldn't find a similar case with answer.
    PPS: Are there any good alternatives to iTunes?

    Her iPhone has its "synced" library on an iMac27 which do not come with a CD drive anymore.
    So we go to our MBP and load the CD into iTunes there. 
    So far so good.
    Now that the CD is ripped on your computer, copy the song files from your computer to a flash drive.  Take the flash drive to her iMac, where you can add the files to her iTunes library.
    Then, she can sync her phone to her own library, which will now include the new Beyoncé tracks.

  • Spotify playing different song than the one clicked(gif provided)

    This only happens on literally one playlist,all my other playlists are fine(and some do have unavailable tracks such as this one so i assume that this is not a problem) http://gyazo.com/591163554a5d42a7287a979e975cabc0 As you can see,for some reason,a track 2 places after the clicked song is actually played... This started happening after updating a few days ago,but not immediately after

    Hi, I am also having this issue - as far as I can tell it only happens to one playlist, which was created by dragging a public playlist onto the "New Playlist" box (this is the only time I have made a playlist this way - I usually create the playlist and add songs or create a playlist by dragging individual songs onto it). I'll try recreating this one by dragging individual songs onto the box - see if that fixes it. This has happened several times in the past 24 hours. A minute ago I went to another playlist and back to this one and it was fixed, but I've done nothing that would've fixed it permanently. Note that there have been several updates since March, so this wasn't fixed (at least not in all cases) in the update back in March. Any feedback on this matter, and when it will be fixed, would be much appreciated. Many thanks,Clarkey

  • Firefox is sending me to a different website than the one I'm trying to go to, I keep resetting Firefox but its becoming fustrating. How do I get it to stop?

    Look this is going to sound pathetic, but i keep trying to get onto tumblr.com but no matter what i do it keeps sending me to Facebook.com. I've tried to go through google, yahoo, and bing but its still keeps sending me to facebook. none of my friends have ever had problems with firefox and untill the last two weeks neither have I. Resetting hasn't helped for very long and it's starting to make it so i have to reset every day.
    sorry if this is an inconvenience,
    Flaremage

    Do a malware check with several malware scanning programs on the Windows computer.<br>
    Please scan with all programs because each program detects different malware.<br>
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Finder has a different date than the one in iphoto for date created

    ok...I found a bunch of pics that have the wrong date created. I changed it in iphoto. I also tried changing it in photoshop bridge. However, the finder is still using some weird date for the date created. Why is this? It's effecting my picture frame.

    I have a similar problem. I've downloaded a ton of pictures covering 5 months of touring into file folders on the computer. When I view those in the finder and ask to show the creation dates it lists them correctly. I then imported the pictures into iPhoto, and again, the creation dates are correct. Now when I drag selected pictures out of iPhoto into a desktop folder to be placed onto a digital picture frame, the creation dates all show the date and time they were imported into iPhoto.
    Is there a way to keep the original creation dates with those pictures when pulling them from iPhoto? If not I will have to go back to the original files and sort thru them using preview or some other method. I have tried this and the dates are preserved in the newly composed folder for importing to the picture frame, but it is really time consuming.
    John

Maybe you are looking for

  • Loss of 3G for a few hours and then back to Normal?????

    I have a 3GS 16gb phone and this morning, it lost 3G for about 3 hours or so...I called AT&T tech support and they could not do much and thought it may be a SIM card issue. Amazingly, before i could visit the AT&T store, things went back to normal an

  • How to setup e-mail account without deleting web mail server

    When I delete e-mail on i-phone, it delete web mail server mail also.     I like to keep these web mail server mail. Like old i-phone 4 was not delete web mail server mail, even I delete i-phone mail. Please tell me how to set up e-mail on i-phone. T

  • Usage of import statements

    I have a problem of using packages & import statements.... Something like this... Assume, i have 2 java classes. (Class1.java & Class2.java) Class1.java is in --> C:\java\examples\folder1\abc\Class1.java Class2.java is in --> C:\java\examples\folder2

  • Help me save all my hard work and wasted time.

    i am trying to do the OS 5 update on all my devices. I did iPad, now I'm on to the iPhone. Question: on my phone I have almost all the stars in Stupid Zombies. On my iPad I did not. How can I keep the phone version? I can't bear to lose all those sta

  • Best practice to create a database

    please can you send me the best practice to create a database which is want to be used in the future for a dataware house