On Jun 18, 2006 2:07 PM, Barry Traver wrote: > I can't seem to get HTTPSocket to give me what HTMLViewer > (correctly) gives me. > <snip> > I seem to get the HTML for a different page altogether. > (It's certainly not what I get if I go to that URL and "View > Source" with a regular Web browser.) > > Anyone have any idea what's happening here? How can I get > HTTPSocket to show me the source code (i.e., put the source code > into a string) for that URL? > > I'm probably doing something stupid, but I can't figure out what. >
I presume that URL is redirecting to a different page. On the HTTPSocket check (on PageReceived) the httpStatus code to see if you get a 302 or 301 redirect code - if yes, then check the headers for the new URL location. Carlos _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
