HTML - Direct Access - Forbidden
Hi,
I want to download data from web but failed. I need to download some stock info (High, Low, Price ) from he http://money18.on.cc/eng/info/livein...l?symbol=00001 The problem is those data is generated thru javascript and not appearing in the html file that I've download from the above link . What I've done: 1. used Firebug to trace the js. 2. identified data is generated thru this link" http://money18.on.cc/js/real/quote/0...=1287193281904 ("00001" is the stock number and "t=128719328190" is the timestamp) 3 . used Firefox Live Http Header to trace the headers of http://money18.on.cc/eng/info/livein...l?symbol=00001 and found this (just extracted a portion of it): Code: --------------------------------------------------------- http://money18.on.cc/js/real/quote/00001_r.js?t=1287193281904 GET /js/real/quote/00001_r.js?t=1287193281904 HTTP/1.1 Host: money18.on.cc User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10 Accept: */* Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Referer: http://money18.on.cc/info/liveinfo_quote.html?symbol=1 Cookie: m18-sHist=2930_0-566_0-5_0-3998_0-8321_0-959_0-1163_0-379_0-916_0-1_0 HTTP/1.1 200 OK Date: Sat, 16 Oct 2010 01:41:19 GMT Server: Apache/2.0.52 (Red Hat) Last-Modified: Fri, 15 Oct 2010 08:00:59 GMT Etag: "2e3922e5-be-3a1ac4c0" Accept-Ranges: bytes Vary: Accept-Encoding,User-Agent Content-Encoding: gzip Content-Length: 142 Keep-Alive: timeout=3, max=14999 Connection: Keep-Alive Content-Type: application/x-javascript ---------------------------------------------------------- 4. used the browser to go he http://money18.on.cc/js/real/quote/00001_r.js?t=1287193281904 and got "Forbidden" 5. used perl and specified those headers found in "Live Http Header" to extract the content. Still the same "Forbidden" Do you have any solution to download those data? Thanks! Similar TutorialsHi All Ive developed a website in a sub directory of my webspace and now its complete I've moved the files to the root directory. The problem I have now, is rather than display the index page I get a blank page with the error "Forbidden You do not have permission to access this document. " I can see the website fine if i manually define the index.php file in the address bar but obviously this is not what people will do when visiting my website. I am using an Apache server. Hello everyone, I'm building a html page that (I think) needs Javascript directly written into it because it won't be uploaded into a directory I can edit. A few questions: 1. Would this code "<script type="text/javascript" src="the matrix.js">" work if the file was within the document? 2. Does a JavaScript file need to be within the same web directory as a document that's referencing it? Thanks Hello everybody I have a question, might be dumb but... Lets assume i have a link to an image on a page, is it possible to make a code or script or something so when i click on the link to that image, it downloads it not open it in the browser??????? i know i dont have the best choice of words but i hope u understand my request thanks I am trying to figure out a way to load the index page with a requested iframe page without clicking the link. Instead of going to site.com/embeddedpage.html i want to essentially go to site.com/#iframeembeddedpage.html is there a way to load an iframe within the index page via a direct url??? I would like to know how to add a link direct to an image page. For an instance, if we know there is a pic : http://www.htmlforums.com/images/smilies/SmileBulb.gif I am just going to give link in any other site or in my site, I want to have a background ads, i.e like we have index.html page, is it possible to have some manual added code on pic embedded page. Just the image must show on, if it is direct linked & the image must show with any manual code or ads attached ? Is this feature possible ? Can I click on a thumbnail picture and have it open up below some text on the same page but using a larger size pix. TIA A company website I went to gives the user the option of downloading a program, the purpose I believe is to open a browser and automatically log the user into their online account at www.companysite.com. The user simply double-clicks an icon on the desktop which lauches the browser, etc. How can I do this? Anyone have a link to a fre script? Thanks! Chris Hello, I've some html files i will write to a cd to enable local browsing of the files. How can i force autohtml.exe to open index.html in Internet Explorer exclusively- not in other browsers? I think only such would allow photos to be viewed in an explorer window- as in viewing the file "X:/stuff/Gallery" in explorer - as opposed to in a browser window which provides only a view of each picture per click and not the whole photo gallery with more navigation flexibility etc. Ive tried opening in Firefox and Chrome but they dont allow (convenient)opening of local folders for security reasons. Any prompt help will be much appreciated:D Stef When we use accesskey attribute we can able to use ALT+(accesskey). is there any way to define access keys for button and links should be allow us to use CTRL+ALT+(accesskey) Thanks I'd like visitors to my web site to automatically be taken to the home page when they enter my domian name. For example, when they type in thedomainame.com the will automatically see thedomainame.com/homepage. Is this done by using htaccess? Can you someone explain this to me? How it works and how to set it up? Or how do I change the home page name to be the index page? Right now it's domainname.com/folder/index thanks. Can i have a code to make a password kinda thingy? i want to have some pages that you need a special password for. and how can i make the image in the search bar of my page different, is it <title image url="URL HERE"> Hi I am Ron a new member. I am using 123 reg to edit our allotment web site. Access seems to have changed and cannot get in to edit can anyone advise. Ron Hi All... I'm building a website in Dreamweaver 8. I have one layer in the site that contains a form field for collecting email addresses. The layer is placed on top of an image. When I horizontally resize my browser window the layer moves. When I resize the browser vertically it stays in place. I've tried switching the layer properties from relative to absolute and back again but it doesn't make a difference. Could someone please have a look at the page and see if they have any suggestions? The link is http://www.sweetdivinemusic.com/storycollective This is the last piece I need to fix before taking the site live. Thanks a ton folks! Robert Hi everyone, What is the code that i will have to enter to my website so mobile phones will be able to access it? Hello, I am trying to load an HTML page with following code snippet. The img1440.html in window.open method gives an "access denied" error when I load this calling HTML that loads the img1440.html from onclick event. HOWEVER, THE WEIRD thing is that this error only comes from IE. It works JUST GREAT on Firefox. Please help. My most of user base are is accustomed to IE so gotta live with IE. Please help. <body> <!--1 --> <div id="Div1" class="panel" style="margin-right:0.5%; margin-bottom:0.5%;" onclick="window.open('img1440.html', '','width=600px,height=200px');" > <div class="panel-label">Accounting Services</div> <ul class="block"> <!--STUFF--> </ul> </div> I am writing an "external link exit page" where anytime a user clicks on an external link in my site, it navigates to a page exit.html that says something to the effect of: "Please note that you are leaving our website, and therefore we are not responsible for the content of the website you are about to visit." I was thinking of making the destination URL be a parameter, so for example a section of links on my website might look something like this: <h3>Other Sites You Might Find Useful</h3> <a href="exit.html?url=http://www.google.com">Google</a><br /> <a href="exit.html?url=http://www.yahoo.com">Yahoo!</a><br /> <a href="exit.html?url=http://www.weather.com">weather.com</a><br /> So in exit.html I have a parameter called url that needs to be decoded and placed in my HTML source. After I display the warning message I want to give the user the option to either go back or continue to the externall url. <h3>You are now leaving our website. Please be advised that we are not responsible for the content of the website you are about to visit. </h3> <h4>Are you sure you want to continue?</h4> <a href="[URL parameter]">Yes! Continue to [URL parameter]</a><br /> <a href="javascript:history.go(-1)">No! Cancel and go back</a><br /> How do I do this? Is it possable to conect to a db without serverside script? My website is in asp but I would like to rebuild it. Is there a way to connect using xhtml. The one thing I really like is every part of my website is dependent on my db. That makes it really easy to admin but makes it stuck on one layout unless I rewite the whole site. Even java script would do. I want a site that gets away from asp and/or php but I am reluctent to give up my db. Hi. I'm new to web development, and since I didn't have any luck on google with this I thought I'd ask here. What I need is the ability to allow only one user to access my page at a time, with the access time tied to their account/password. This is not a general web page, and you already have to vpn to get to it so overall security isn't a big deal. The system allows remote control of a few simple machines, and currently if more than one person can get to it simultaneously the last access steals control. Anyway, heres an example: Joe's Time: 1:00 - 3:00 M, cannot login before 1:00 and auto-logout at 3:00 Tom's Time: 3:00 -5:00 M, Bob's Time, etc.. I suspect this might require Java or something, but I don't have the first clue where to start looking. Its a windows box btw, and I don't have control of the user machines so this has to be set up for my local directory. Any hints (or free code if this is a simple/stupid question) are appreciated. Hi All, I have few requirement for the HTML and MS Access Database Integration. 1. requirement to "register online" using HTML page however I want all the information (Name, Age, Username, Password,etc..) entered to be updated in the MS Access Database. 2. requirement to login using the HTML which can read the username/password from the MS Access Database. Can anyone give me the link to an exising source code for this requiremnet or guide me how shall I proceed? I have the HTML page ready for the registration/login and MS Access Database ready however I need to know how can I read/write from the HTML page to the MS Access Database? I am new to HTML and MS Access. Thank you all in advance for any help with my requirement. Sanjiv Hi, I am trying to restrict access to a certain page on my website. I don't really want to set up a username and password, instead of was thinking of the following 2 things to verify. #1: would be for them to enter an email address that ends in either "@weber.edu" or "@mail.weber.edu". #2: would be for them to have to enter an identification number which must start with a "w" and must have 8 numbers after the w. No more, and no less than 8 numbers. For example: Email address: jay@mail.weber.edu Identification number: W01234567 If those two conditions are met, then they can have access to the page. Any clue how to write the code for that? Thank you very much! |