Re: [TCPConnect] questions/problems

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39646
interpreted = N
texte = So any suggestions to get around this? I don't control the site, I just have permission to get content from it.The apparently changed servers/hosts recently as this used to work (well, at least it displayed the page content, anyway).Is there anyway to send the host header field while doing a [tcpconnect] and [tcpsend]?DaleOn Thu, 25 Oct 2001 05:11:17 Jay Van Vark wrote: > If the target site is using Host Header field mapping, you > won't reach it with that. > > The connect is resolving the IP, but you aren't sending the > host > header field and therefore you are really connecting to a > different site. > > ie -- what you are really hitting is > http://212.67.202.65/partner/feeds/bearnet/weekly.xml > > That is not found.... > > > >Hello, > > > >I am trying to pull some data from a website and place it > into a > >database (with permission). > > > >If I go to the link directly the page loads fine, however > when > >using [TCPConnect] and [TCPSend] I get a file not found. > > > >Here is what I am using: > > > >[TCPConnect host=www.russellgrant.com&port=80] > >[TCPSend]GET /partner/feeds/bearnet/weekly.xml > >HTTP/1.0[UnURL]%0D%0A%0D%0A[/UnURL][/TCPSend] > >[/TCPConnect] > > > >However if I directly go to > >http://www.russellgrant.com/partner/feeds/bearnet/weekly.xml > >the page displays fine. > > > >Any ideas? > > > >I am running this code on a Mac using OS 9 and WC 3.0.7 - it > >will be running on a Linux box in the future with WC 4.x > > > >Thanks > > > >Dale > -- > > Jay Van Vark > **************************** > Entrepreneur / Business Consulting Architect > Promote4Less > voice (858) 860-6402 x2019 > **************************** > efax (801) 659-7952 > > http://www.Promote4Less.com > Rise above your competition!------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [TCPConnect] questions/problems (Dale Therio 2001)
  2. Re: [TCPConnect] questions/problems (John Peacock 2001)
  3. Re: [TCPConnect] questions/problems (Dale Therio 2001)
  4. Re: [TCPConnect] questions/problems (John Peacock 2001)
  5. Re: [TCPConnect] questions/problems (Glenn Busbin 2001)
  6. Re: [TCPConnect] questions/problems (Dale Therio 2001)
  7. Re: [TCPConnect] questions/problems (Christer Olsson 2001)
  8. Re: [TCPConnect] questions/problems (John Peacock 2001)
  9. Re: [TCPConnect] questions/problems (Dale Therio 2001)
  10. Re: [TCPConnect] questions/problems (Jay Van Vark 2001)
  11. [TCPConnect] questions/problems (Dale Therio 2001)
So any suggestions to get around this? I don't control the site, I just have permission to get content from it.The apparently changed servers/hosts recently as this used to work (well, at least it displayed the page content, anyway).Is there anyway to send the host header field while doing a [tcpconnect] and [tcpsend]?DaleOn Thu, 25 Oct 2001 05:11:17 Jay Van Vark wrote: > If the target site is using Host Header field mapping, you > won't reach it with that. > > The connect is resolving the IP, but you aren't sending the > host > header field and therefore you are really connecting to a > different site. > > ie -- what you are really hitting is > http://212.67.202.65/partner/feeds/bearnet/weekly.xml > > That is not found.... > > > >Hello, > > > >I am trying to pull some data from a website and place it > into a > >database (with permission). > > > >If I go to the link directly the page loads fine, however > when > >using [tcpconnect] and [tcpsend] I get a file not found. > > > >Here is what I am using: > > > >[TCPConnect host=www.russellgrant.com&port=80] > >[tcpsend]GET /partner/feeds/bearnet/weekly.xml > >HTTP/1.0[unurl]%0D%0A%0D%0A[/UnURL][/TCPSend] > >[/TCPConnect] > > > >However if I directly go to > >http://www.russellgrant.com/partner/feeds/bearnet/weekly.xml > >the page displays fine. > > > >Any ideas? > > > >I am running this code on a Mac using OS 9 and WC 3.0.7 - it > >will be running on a Linux box in the future with WC 4.x > > > >Thanks > > > >Dale > -- > > Jay Van Vark > **************************** > Entrepreneur / Business Consulting Architect > Promote4Less > voice (858) 860-6402 x2019 > **************************** > efax (801) 659-7952 > > http://www.Promote4Less.com > Rise above your competition!------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Dale Therio

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Speed Optimization - Mac (1997) OT: 800x600 (2003) Heads up, cookies *may* be outlawed in Europe (2001) WebCat 2.1 & WebStar 4.2 (2000) Banner DNA (1997) & in Lookups (1997) ShowNext (1997) Quitting WebMerchant ? (1997) Problem (1997) (1997) [WebDNA] PDF creation (2013) [Announce]: Web server security and password protection (1997) Help!!!! Purchases not going through! FIXED! (1997) New public beta available (1997) Multiple Pulldowns (1997) upgrading (1997) Migrating to NT (1997) pull downs (1997) Applescript, WebDNA, and PDF (1997) Progress !! WAS: Trouble with formula.db (1997)