Re: [TCPConnect] questions/problems

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39650
interpreted = N
texte = Dale Therio wrote: > > 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]?Yes, you can send the host header field exactly like you are sending the GET field now (and in fact can send any HTTP header fields you want):[TCPConnect host=www.russellgrant.com&port=80] [TCPSend]GET /partner/feeds/bearnet/weekly.xml HTTP/1.0 User-Agent: Mozilla/4.03 [en] (Win95; I ;Nav) Host: www.russellgrant.com Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Accept-Language: en Accept-Charset: iso-8859-1,*,utf-8 [UnURL]%0D%0A%0D%0A[/UnURL][/TCPSend] [/TCPConnect]Should to that, and more besides; you may need an [UnURL]%0D%0A[/UnURL] (notice just one pair) after each line, depending on your O/S. If you save the file as a DOS file (CR/LF ending), it should work without the [UnURL] stuff.HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- 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)
Dale Therio wrote: > > 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]?Yes, you can send the host header field exactly like you are sending the GET field now (and in fact can send any HTTP header fields you want):[TCPConnect host=www.russellgrant.com&port=80] [tcpsend]GET /partner/feeds/bearnet/weekly.xml HTTP/1.0 User-Agent: Mozilla/4.03 [en] (Win95; I ;Nav) Host: www.russellgrant.com Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Accept-Language: en Accept-Charset: iso-8859-1,*,utf-8 [unurl]%0D%0A%0D%0A[/UnURL][/TCPSend] [/TCPConnect]Should to that, and more besides; you may need an [unurl]%0D%0A[/UnURL] (notice just one pair) after each line, depending on your O/S. If you save the file as a DOS file (CR/LF ending), it should work without the [unurl] stuff.HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- 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/ John Peacock

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:

Sending Email (2004) Searching (1998) Nested vs conditional (1997) RE: [WebDNA] db admin tool (2008) [OT] .htaccess & SSL (2004) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) orders being printed (1998) WebCat2: Items xx to xx shown, etc. (1997) Weird happenings (1998) Re:2nd WebCatalog2 Feature Request (1996) Multiple catalog databases and showcart (1997) Help! WebCat2 bug (1997) WebCatalog and WebTen (1997) [WebDNA] 10.5 apache handler extension issue (2008) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) [WebDNA] WebDNA 8.6 announced - New features (2018) Tab Charactor (1997) database size? (1997) about this server and links to who (1997) question about checkboxes (1999)