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:

Ranking customers (2003) lookup (1998) Frames and WebCat (1997) can WC render sites out? (1997) Cool new site (1996) Emailer (WebCat2) (1997) convertchars and e-mail (1998) [WebDNA] reCAPTCHA and WebDNA (2010) WC Database Format (1997) [WebDNA] Succesfull migration from WebDNA/AppleServer to (2018) X Server (1999) Authorize.net questions ... (2003) Problem displaying search result (1997) [include ...] behavior (1997) Building Calendars (1997) many-to-one problem (1998) Sorting by date (1997) Cart Question (1998) multiple credit card merchant accounts/processors (1997) RE: WebDNA-Talk searchable? (1997)