New topic: 

Retrieving graphic from httpsocket.Get()

<http://forums.realsoftware.com/viewtopic.php?t=30518>

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       fitzbew           Post subject: Retrieving graphic from 
httpsocket.Get()Posted: Fri Oct 16, 2009 10:58 am                        
Joined: Fri Sep 30, 2005 8:30 am
Posts: 237              For months now, one of my apps shows a weather widget 
by downloading a file via HttpSocket.Get with this url (I've added quotes at 
each end for presentation in this post):

"http://www.weatherforyou.net/fcgi-bin/hw3/hw3.cgi?config=png&forecast=hourly&alt=hwismallhourly&place=wake+forest&state=nc&country=us&hwvbg=&hwvtc=";
 width="140" height="70" border="0" alt="Latest Wake Forest, North Carolina, 
weather"

Suddenly it stopped working. Instead, I would get an html page stating: "400 
Bad request
Your browser sent an invalid request."

But when I pasted the link above directly into a "real" browser, it works fine.

If I use HttpSocket.SetRequestHeader() to duplicate Firefox headers, I still 
get the same error.

What else can I try?  It seems (I'm guessing here) that the server is somehow 
identifying that my app is not a real browser and is refusing to dish up the 
graphic.

(Interestingly, the HTVLViewer also refuses to show the graphic.)

Thanks in advance for any advice.   
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to