hey guys, i use Fopen to get the contents from a web page, but I get this
error...
Warning: fopen( http://seb.sleepbot.com:8000/played.html): failed to open
stream: HTTP request failed! ICY 400 Server Full
I am confused as to why I would get this error, because going to the website
manually, it's just fine!! The site isn't even full or anything. Is there
a workaround? Thanks 11 4847
Try something like $page = file( http://seb.sleepbot.com:8000/played.html);
Phil
"Tesla" <tp**@houston.r r.com> wrote in message
news:51******** ********@fe2.te xas.rr.com... hey guys, i use Fopen to get the contents from a web page, but I get this error...
Warning: fopen(http://seb.sleepbot.com:8000/played.html): failed to open stream: HTTP request failed! ICY 400 Server Full
I am confused as to why I would get this error, because going to the
website manually, it's just fine!! The site isn't even full or anything. Is
there a workaround? Thanks
I still get the same error message :-(
"Phillip Parr" <no****@here.co m> wrote in message
news:Sr******** *******@news-binary.blueyond er.co.uk... Try something like $page = file(http://seb.sleepbot.com:8000/played.html);
Phil
"Tesla" <tp**@houston.r r.com> wrote in message news:51******** ********@fe2.te xas.rr.com... hey guys, i use Fopen to get the contents from a web page, but I get
this error...
Warning: fopen(http://seb.sleepbot.com:8000/played.html): failed to open stream: HTTP request failed! ICY 400 Server Full
I am confused as to why I would get this error, because going to the website manually, it's just fine!! The site isn't even full or anything. Is there a workaround? Thanks
oh, i forgot the speech marks!
put the speech marks before and after the link within the brackets, like
this:
$page = file("http://seb.sleepbot.co m:8000/played.html");
That should work
Phil
"Tesla" <tp**@houston.r r.com> wrote in message
news:ZW******** *********@fe2.t exas.rr.com... I still get the same error message :-(
"Phillip Parr" <no****@here.co m> wrote in message news:Sr******** *******@news-binary.blueyond er.co.uk... Try something like $page =
file(http://seb.sleepbot.com:8000/played.html); Phil
"Tesla" <tp**@houston.r r.com> wrote in message news:51******** ********@fe2.te xas.rr.com... hey guys, i use Fopen to get the contents from a web page, but I get
this error...
Warning: fopen(http://seb.sleepbot.com:8000/played.html): failed to
open stream: HTTP request failed! ICY 400 Server Full
I am confused as to why I would get this error, because going to the
website manually, it's just fine!! The site isn't even full or anything. Is there a workaround? Thanks
No that doesn't work. in fact that was what I tried the first time around.
For some reason I went to a this site that allows u to send a HTTP request
to any URL (it is written in CGI). You just put theURL in the form and
press the send button. And it easily retrived the page.
This is what the problem is. I have no problem using fopen with any other
site. it is just this particular site that is giving me a headache and I
don't know why. Why would it work with that CGI site, but not work with my
PHP code?
this is the site I am trying to extract text from http://seb.sleepbot.com:8000/played.html. If anyone can do it, please let
me know please! thanks :)
"Phillip Parr" <no****@here.co m> wrote in message
news:16******** *******@news-binary.blueyond er.co.uk... oh, i forgot the speech marks!
put the speech marks before and after the link within the brackets, like this:
$page = file("http://seb.sleepbot.co m:8000/played.html");
That should work
Phil
"Tesla" <tp**@houston.r r.com> wrote in message news:ZW******** *********@fe2.t exas.rr.com... I still get the same error message :-(
"Phillip Parr" <no****@here.co m> wrote in message news:Sr******** *******@news-binary.blueyond er.co.uk... Try something like $page = file(http://seb.sleepbot.com:8000/played.html); Phil
"Tesla" <tp**@houston.r r.com> wrote in message news:51******** ********@fe2.te xas.rr.com... > hey guys, i use Fopen to get the contents from a web page, but I get this > error... > > Warning: fopen(http://seb.sleepbot.com:8000/played.html): failed to open > stream: HTTP request failed! ICY 400 Server Full > > I am confused as to why I would get this error, because going to the website > manually, it's just fine!! The site isn't even full or anything.
Is there > a workaround? Thanks > >
Well, I don't think it's a PHP problem as I've just tried to access that
site myself with the file() thingy and all I get back is a blank page so it
might be something to do with shoutcast or even port numbers. Fraid I can't
help further than that as I'm not an expert!
Phil
"Tesla" <tp**@houston.r r.com> wrote in message
news:pb******** *********@fe2.t exas.rr.com... No that doesn't work. in fact that was what I tried the first time
around. For some reason I went to a this site that allows u to send a HTTP request to any URL (it is written in CGI). You just put theURL in the form and press the send button. And it easily retrived the page.
This is what the problem is. I have no problem using fopen with any other site. it is just this particular site that is giving me a headache and I don't know why. Why would it work with that CGI site, but not work with
my PHP code?
this is the site I am trying to extract text from http://seb.sleepbot.com:8000/played.html. If anyone can do it, please let me know please! thanks :)
"Phillip Parr" <no****@here.co m> wrote in message news:16******** *******@news-binary.blueyond er.co.uk... oh, i forgot the speech marks!
put the speech marks before and after the link within the brackets, like this:
$page = file("http://seb.sleepbot.co m:8000/played.html");
That should work
Phil
"Tesla" <tp**@houston.r r.com> wrote in message news:ZW******** *********@fe2.t exas.rr.com... I still get the same error message :-(
"Phillip Parr" <no****@here.co m> wrote in message news:Sr******** *******@news-binary.blueyond er.co.uk... > Try something like $page = file(http://seb.sleepbot.com:8000/played.html); > > Phil > > "Tesla" <tp**@houston.r r.com> wrote in message > news:51******** ********@fe2.te xas.rr.com... > > hey guys, i use Fopen to get the contents from a web page, but I
get this > > error... > > > > Warning: fopen(http://seb.sleepbot.com:8000/played.html): failed
to open > > stream: HTTP request failed! ICY 400 Server Full > > > > I am confused as to why I would get this error, because going to
the > website > > manually, it's just fine!! The site isn't even full or anything.
Is > there > > a workaround? Thanks > > > > > >
Tesla wrote: this is the site I am trying to extract text from http://seb.sleepbot.com:8000/played.html. If anyone can do it, please let me know please! thanks :)
I can't access that site from my computer. Well ... it returns
<quote>
ICY 400 Server Full
icy-notice1:<br>SHO UTcast Distributed Network Audio Server/posix
v1.7.1<br>
icy-notice2:This server has reached its user limit<br>
Connection: close
</quote>
with a very strange Response header: HTTP/0.9 200 OK ???????
The W3C validator gives an error about wrong Content-Type http://validator.w3.org/
The WDG validator also cannot access it (same result) http://www.htmlhelp.com/tools/validator/
Paul Ding's tools reach it http://www.paulding.net/vsource.html
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
hey pedro, thanks for your reply. if you go to this site http://rexswain.com/httpview.html and type in that address, it will
actually return the content for you! it is written in CGI. my question is,
how are they able to do it successfully, and why are we having a hard
time?!! hehehehe
"Pedro Graca" <he****@hotpop. com> wrote in message
news:c1******** *****@ID-203069.news.uni-berlin.de... Tesla wrote: this is the site I am trying to extract text from http://seb.sleepbot.com:8000/played.html. If anyone can do it, please
let me know please! thanks :)
I can't access that site from my computer. Well ... it returns <quote> ICY 400 Server Full icy-notice1:<br>SHO UTcast Distributed Network Audio Server/posix v1.7.1<br> icy-notice2:This server has reached its user limit<br> Connection: close </quote> with a very strange Response header: HTTP/0.9 200 OK ???????
The W3C validator gives an error about wrong Content-Type http://validator.w3.org/
The WDG validator also cannot access it (same result) http://www.htmlhelp.com/tools/validator/
Paul Ding's tools reach it http://www.paulding.net/vsource.html -- --= my mail box only accepts =-- --= Content-Type: text/plain =-- --= Size below 10001 bytes =--
Tesla wrote: hey pedro, thanks for your reply. if you go to this site http://rexswain.com/httpview.html and type in that address, it will actually return the content for you! it is written in CGI. my question is, how are they able to do it successfully, and why are we having a hard time?!! hehehehe
That's easy:
<?php
if (gethostbyaddre ss($_SERVER['REMOTE_ADDRESS '] == $_SERVER['REMOTE_ADDRESS '])) {
exit($garbage);
}
// else continue with proper content
?>
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
Tesla wrote: Warning: fopen(http://seb.sleepbot.com:8000/played.html): failed to open stream: HTTP request failed! ICY 400 Server Full
I am confused as to why I would get this error, because going to the website manually, it's just fine!!
I'm confused too. It is quite confusing, isn't it?
It seems the server's response depends on the User-Agent header sent
in the request. That's a bit silly if you ask me.
Is there a workaround?
Connect using fsockopen and send a request satisfying the server's
conditions. I've no clue what they are. There is some documentation
for the SHOUTcast server, but don't hold your breath.
You might get lucky by sending:
GET /played.html HTTP/1.1
Host: seb.sleepbot.co m:8000
User-Agent: Mozilla
Connection: close
--
Jock This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: git_cs |
last post by:
Hey, guys and gals
Somedays ago, I had asked for the DES algorithm in C language.
Although I have written the algorthim in C myself, I am facing a
peculiar problem, which I hope some of u guys and gals solve.
I use Turbo C++ version 3.0 and WINXP as the operating system.
Pls observe the following program.
1 #include<stdio.h>
2 #include<conio.h>
|
by: Patrice |
last post by:
Hi,
I would to call fopen function several time in my application.
This application permits to read files which path is registered in a
configuration file.
For exemple:
File 1 = toto.txt
File 2 = tot2.txt
....File N = TotoN.txt
Then, I read each file (one by one), get adress of the beginning of
data and size of data.
|
by: lihua |
last post by:
Hi, Group!
I got one question here:
We all know that fclose() must be called after file operations to
avoid unexpected errors.But there are really cases when you forget to
do that!Just
like what happens in memory operations, everyone knows the importance
of
freeing the allocated memory, but there do have memory leaks from time
to
|
by: pjlsr |
last post by:
It's close to twenty years since I used the C language and at that time
I was doing only floating point computational work, nothing with
strings or reading files. I tried to use fopen in the following manner.
a file name is entered by keyboard , fgets is used to read the name.
printf is used to confirm that the name was correctly read. Then
infile=fopen("filename","r") is used to open the file which very
definitly exists. It returns '0' as...
|
by: Mike |
last post by:
Hello,
Im doing this in php5, apache
Im not sure where the problem lies but I have a file
<?php
Class CreateXML{
public function xmlDeclaration(){
return $varxmlDec = "<?xml version='1.0'> ";
}
public function rssDeclaration(){
return $varrssDec = "<rss version='2.0'>";
| |
by: peter.hrdy |
last post by:
Hi guys.
i have big problem with using fopen, fsockopen or curl.
if i tried to use it on remote site it doesn't works.
i've readed to much posts but didn't found anything helpfulll. fopen
just give permission denied.
........
please help
|
by: Hans Fredrik Nordhaug |
last post by:
I'm trying to write to a file in the current directory - no remote
files. The subject says it all - I can add that both the directory
and the file is wordwritable. This happens on a (quite good) free
hoster in Norway which doesn't use safe mode, running PHP 5.1.6 as the
PHP info below shows ...
Test it at:
http://home.no.net/moldevbk/fopen-test/?mode=w (write - fails)
http://home.no.net/moldevbk/fopen-test/?mode=a (append - ok)...
|
by: IamtheEvster |
last post by:
Hi there,
I'm using fopen for the first time and I know I'm running into a
permissions problem, but I can't seem to resolve it and any help would
be greatly appreciated.
I'm running PHP5 and Apache on RedHat Enterprise Linux 4.
I've verified (by looking in httpd.conf) that Apache is running as
user "apache" and group "apache". So, that's the user/group that PHP
|
by: Michel Rouzic |
last post by:
I made a program that accepts as parameters an input file name that
we'll call file1, and an output file name that we'll call file2, and
opens on its own a configuration file called file3. My program works
correctly when calling it like this : ./program file1 file2, and also
with full paths, like this : ./program c:\dir\file1 c:\dir\file2
However, a most puzzling phenomenon occurs when I use the full path
only for the first file, like...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |