Rev 80 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 80 | Rev 85 | ||
---|---|---|---|
Line 59... | Line 59... | ||
59 | 'method' => 'GET', |
59 | 'method' => 'GET', |
60 | 'header' => $header |
60 | 'header' => $header |
61 | ) |
61 | ) |
62 | ); |
62 | ); |
63 | $context = stream_context_create($options); |
63 | $context = stream_context_create($options); |
64 | $cont = $this->url_get_contents($url, 60, $context); |
64 | $cont = $this->url_get_contents($url, 1, $context); |
65 | if ($cont === false) throw new VNagException("Cannot access $url"); |
65 | if ($cont === false) throw new VNagException("Cannot access $url"); |
66 | 66 | ||
67 | $data = $this->readInvisibleHTML($cont); |
67 | $data = $this->readInvisibleHTML($cont); |
68 | 68 | ||
69 | if (!$data) throw new VNagInvalidArgumentException("No monitor with ID \"$this->id\" found at URL $url"); |
69 | if (!$data) throw new VNagInvalidArgumentException("No monitor with ID \"$this->id\" found at URL $url"); |