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 GETfield 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.0User-Agent: Mozilla/4.03 [en] (Win95; I ;Nav)Host: www.russellgrant.comAccept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*Accept-Language: enAccept-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 savethe file as a DOS file (CR/LF ending), it should work without the [UnURL] stuff.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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:
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 GETfield 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.0User-Agent: Mozilla/4.03 [en] (Win95; I ;Nav)Host: www.russellgrant.comAccept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*Accept-Language: enAccept-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 savethe file as a DOS file (CR/LF ending), it should work without the [unurl] stuff.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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)