|
Posted by Miguel Cruz on 12/17/71 11:54
"pieterprovoost@gmail.com" <pieterprovoost@gmail.com> wrote:
> Can anyone tell me why going to
> http://www.algaebase.org/DistributionResponse.lasso?currentMethod=distro&sk=20
> &-session=abv3:D5C1E5F111d2e05040XVy1A0A54A
> yields results, while the same page retrieved with fopen() says 'no
> results'?
That URL doesn't contain your search terms.
It contains a reference ("abv3:D5C1E5F111d2e05040XVy1A0A54A") to a
session stored on the server's hard drive which in turn holds your
search terms.
That session has a finite lifespan, and after that (maybe half an hour
or so) the server throws it away, and the URL becomes invalid.
If you want this to work and you do not control the algaebase server,
you are going to have to use curl to build a form submission and collect
the results. You cannot, to my knowledge do this with fopen(). You could
do your own HTTP transaction with fsockopen() et al but that would be
overkill.
miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu
Navigation:
[Reply to this message]
|