Re: [TCPConnect] questions/problems

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39643
interpreted = N
texte = 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.xmlThat 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-7952http://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)
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.xmlThat 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-7952http://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/ Jay Van Vark

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:

WCS Newbie question (1997) lineitems context in sendmail context (1998) taxTotal (1997) WebDNA 5 - Function test weirdness or ? (2003) WebCatalog Features (1997) America Online Issues (1998) writing db to disk (1997) [isfile] ? (1997) Multiple Search Fields (1998) multiple databases (1997) label?! (2005) emailer w/F2 (1997) New syntax feedback for 4.0 (2000) limitation found on group searching (1997) Still can't interpret encrypted templates. (2003) Re:Emailer and encryption (1997) Not really WebCat - need HTML Grider (1997) [WebDNA] UPS integration (2008) [WriteFile] problems (1997) WebCat2b13MacPlugIn - [include] (1997)