I am a Chemist, and researcher. I have a website :http://icn2.umeche.maine.edu/faculty.../homepage.html
I want to show my top 10 research papers on "web of science" via a link on my site, but the web of science is a peroxided web service. URLs do not redirect to the correct location, and persons outside of the University, or some place scribed to Web of Science, cannot access the page I would like to show off.
Ah, so i thought I would know what to do: Use php, and use a code block like this:
This works fine, for the target site, which gets the validation cookie from the server, provided you can pass the validation process. Google, also works fine if you were to uncomment and try it.Code:<?php // Download the target file #$target = "http://www.google.com"; $target = "http://libraries.maine.edu/auth/auth.asp?db=Web+of+Science"; #$target = "http://apps.webofknowledge.com.prxy4.ursus.maine.edu/CitationReport.do?product=WOS&search_mode=CitationReport&SID=2BpAL2bObcKIgNP1F4D&page=1&cr_pqid=1&viewType=summary"; $downloaded_page_array = file($target); // Echo contents of file for($xx=0; $xx<count($downloaded_page_array); $xx++) echo $downloaded_page_array[$xx]; ?>
what doesnt work so well, is the rather long url.
My plan is to let my server on campus, load the proxied web page, and get validated. Then display the desired webpage on my site once the server is validated.
Un fortunately, the URL http://apps.webofknowledge.com.prxy4...ewType=summary
redirects to a search, rather than an actual web page. what I need is:
1. Goto http://libraries.maine.edu/auth/auth...Web+of+Science so my server can get validated.
2. redirect to the long URL (which will be like doing the search)
3. click the search button : :http://images.webofknowledge.com.prx...ges/search.gif
4. Get the citation report: which has this format "Create<SP>Citation<SP>Report" (as a regex example, I also want to click this link)
I can do 1 and 2 no problem, but i need some help on the clicking of buttons with php.
can anyone see a problem with my reasoning? Can some one give me a code example to help me get this done?