Re: TCPConnect / TCPSend to Solaris NN Enterprise
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 43909
interpreted = N
texte = Cool .. That'll be $2 thanks ;)> Alain and Peter,> > Thanks for all of your help. This worked perfectly!> -Robert> > Alain Russell wrote:> >> Peter,>> Add the fields something like this ..>> >> [text]break=[UnURL]%0D%0A[/UnURL][/text]>> >> >> [middle startafter=&endbefore=]>> [TCPConnect host=www.[ref_host].com&port=80]>> [TCPSend]GET [ref_path] HTTP/1.0[break][!]>> [/!]Host: [ref_host][break][!]>> [/!]Referrer: [thisurl][break][!]>> [/!][break][/TCPSend]>> [/TCPConnect]>> [/middle]>> >> >> HTH>> Alain>> >>> Peter,>>> >>> Thanks for the information! As I am admittedly TCPConnect Ignorant, could>>> you>>> please show me what this code might look like using what I originally>>> provided?>>> I'm not sure exactly where to put the header information you're describing.>>> I>>> just>>> want to get it right, getting files posted and getting access to this server>>> for>>> testing is a friggin' nightmare. Here's my original scheme....>>> >>> >>> [middle startafter=&endbefore=]>>> [TCPConnect host=www.[ref_host].com&port=80]>>> [TCPSend]GET [ref_path]>>> HTTP/1.0[/TCPSend]>>> [/TCPConnect]>>> [/middle]>>> >>> >>> THANKS!>>> >>> Peter Werno wrote:>>> >>>> Hello>>>> >>>> it MAY also be that your Netscape-Server requires certain fields that>>>> get posted by regular browsers.>>>> >>>> For example, a browser would usually post somting like this:>>>> >>>> GET / HTTP/1.0>>>> host: www.domain.com>>>> User-Agent: Mozilla, ...>>>> >>>> (Every line separated by a SINGLE linebread (%0D%0A) and at the END a>>>> double-linebreak (%0D%0A%0D%0A)!>>>> >>>> I could imagine that your server needs the host: - header. This is>>>> usually the case if you use virtual domains on the server. Then it>>>> needs to know which virtual server to use by checking the>>>> host-header-information!>>>> >>>> Regards,>>>> >>>> Peter>>>> >>>> On Fri, 27 Sep 2002 10:28:08>>>> Kenneth Grome
wrote:>>>>> There's not supposed to be any line break in the TCPSend context,>>>>> but your code has one there, at least in the email message I>>>>> received from the list. Try removing that line break and let us>>>>> know if it works, or try this instead:>>>>> >>>>> [text]newline=[UnURL]%0D%0A%0D%0A[/UnURL][/text]>>>>> >>>>> [middle startafter=&endbefore=]>>>>> [TCPConnect host=www.[ref_host].com&port=80]>>>>> [TCPSend]GET [ref_path] HTTP/1.0[newline][/TCPSend]>>>>> [/TCPConnect]>>>>> [/middle]>>>>> >>>>> >>>>> >>>>>> I have an application I've developed that uses TCPconnect to send>>>>>> HTML pages>>>>>> through email. All the development for this product was done on>>>>>> MacOS/Webstar>>>>>> including the TCPconnects / sends. After completion and testing,>>>>>> I've tried to do>>>>>> some TCPconnects to a Solaris 8 Box running Netscape-Enterprise/3.6>>>>>> SP3, and of>>>>>> course the connect fails. I suspect it has to do with the line>>>>>> breaks in the>>>>>> send. The code that I'm using below is what works perfect when>>>>>> connecting to a>>>>>> Mac/Web* page...>>>>>> >>>>>> >>>>>> [middle startafter=&endbefore=]>>>>>> [TCPConnect host=www.[ref_host].com&port=80]>>>>>> [TCPSend]GET [ref_path]>>>>>> HTTP/1.0[UnURL]%0D%0A%0D%0A[/UnURL][/TCPSend]>>>>>> [/TCPConnect]>>>>>> [/middle]>>>>>> >>>>>> >>>>>> When I use this code to connect to the Solaris / NN page, I get this>>>>>> message>>>>>> returned...>>>>>> >>>>>> ---- HTTP/1.1 400 Bad Request Server: Netscape-Enterprise/3.6 SP3>>>>>> Your browser>>>>>> sent a message this server could not understand. ---->>>>>> >>>>>> Could someone please explain the linebreak issue, and provide me>>>>>> with the>>>>>> appropriate information I'll need to perform this connection?>>>>>> >>>>>> Thanks in Advance!!>>>>>> >>>>>> -Robert>>>>>> >>>>>> >>>>>> ------------------------------------------------------------->>>>>> 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/>>>>> >>>>> >>>>> >>>>> Sincerely,>>>>> Kenneth Grome>>>>> >>>>> --------------------------------------------------->>>>> WebDNA Professional Training and Development Center>>>>> 175 J. Llorente Street +63 (32) 255-6921>>>>> Cebu City, Cebu 6000 kengrome@webdna.net>>>>> Philippines http://www.webdna.net>>>>> --------------------------------------------------->>>>> >>>>> ------------------------------------------------------------->>>>> 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/>>>> >>>> ------------------------------------------------------------->>>> 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/>>> >>> >>> ------------------------------------------------------------->>> 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/>> >> ------------------------------------------------------------->> 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/> > > -------------------------------------------------------------> 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/-------------------------------------------------------------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:
Cool .. That'll be $2 thanks ;)> Alain and Peter,> > Thanks for all of your help. This worked perfectly!> -Robert> > Alain Russell wrote:> >> Peter,>> Add the fields something like this ..>> >> [text]break=[unurl]%0D%0A[/UnURL][/text]>> >> >> [middle startafter=&endbefore=]>> [TCPConnect host=www.[ref_host].com&port=80]>> [tcpsend]GET [ref_path] HTTP/1.0[break][!]>> [/!]Host: [ref_host][break][!]>> [/!]Referrer: [thisurl][break][!]>> [/!][break][/TCPSend]>> [/TCPConnect]>> [/middle]>> >> >> HTH>> Alain>> >>> Peter,>>> >>> Thanks for the information! As I am admittedly TCPConnect Ignorant, could>>> you>>> please show me what this code might look like using what I originally>>> provided?>>> I'm not sure exactly where to put the header information you're describing.>>> I>>> just>>> want to get it right, getting files posted and getting access to this server>>> for>>> testing is a friggin' nightmare. Here's my original scheme....>>> >>> >>> [middle startafter=&endbefore=]>>> [TCPConnect host=www.[ref_host].com&port=80]>>> [tcpsend]GET [ref_path]>>> HTTP/1.0[/TCPSend]>>> [/TCPConnect]>>> [/middle]>>> >>> >>> THANKS!>>> >>> Peter Werno wrote:>>> >>>> Hello>>>> >>>> it MAY also be that your Netscape-Server requires certain fields that>>>> get posted by regular browsers.>>>> >>>> For example, a browser would usually post somting like this:>>>> >>>> GET / HTTP/1.0>>>> host: www.domain.com>>>> User-Agent: Mozilla, ...>>>> >>>> (Every line separated by a SINGLE linebread (%0D%0A) and at the END a>>>> double-linebreak (%0D%0A%0D%0A)!>>>> >>>> I could imagine that your server needs the host: - header. This is>>>> usually the case if you use virtual domains on the server. Then it>>>> needs to know which virtual server to use by checking the>>>> host-header-information!>>>> >>>> Regards,>>>> >>>> Peter>>>> >>>> On Fri, 27 Sep 2002 10:28:08>>>> Kenneth Grome wrote:>>>>> There's not supposed to be any line break in the TCPSend context,>>>>> but your code has one there, at least in the email message I>>>>> received from the list. Try removing that line break and let us>>>>> know if it works, or try this instead:>>>>> >>>>> [text]newline=[unurl]%0D%0A%0D%0A[/UnURL][/text]>>>>> >>>>> [middle startafter=&endbefore=]>>>>> [TCPConnect host=www.[ref_host].com&port=80]>>>>> [tcpsend]GET [ref_path] HTTP/1.0[newline][/TCPSend]>>>>> [/TCPConnect]>>>>> [/middle]>>>>> >>>>> >>>>> >>>>>> I have an application I've developed that uses TCPconnect to send>>>>>> HTML pages>>>>>> through email. All the development for this product was done on>>>>>> MacOS/Webstar>>>>>> including the TCPconnects / sends. After completion and testing,>>>>>> I've tried to do>>>>>> some TCPconnects to a Solaris 8 Box running Netscape-Enterprise/3.6>>>>>> SP3, and of>>>>>> course the connect fails. I suspect it has to do with the line>>>>>> breaks in the>>>>>> send. The code that I'm using below is what works perfect when>>>>>> connecting to a>>>>>> Mac/Web* page...>>>>>> >>>>>> >>>>>> [middle startafter=&endbefore=]>>>>>> [TCPConnect host=www.[ref_host].com&port=80]>>>>>> [tcpsend]GET [ref_path]>>>>>> HTTP/1.0[unurl]%0D%0A%0D%0A[/UnURL][/TCPSend]>>>>>> [/TCPConnect]>>>>>> [/middle]>>>>>> >>>>>> >>>>>> When I use this code to connect to the Solaris / NN page, I get this>>>>>> message>>>>>> returned...>>>>>> >>>>>> ---- HTTP/1.1 400 Bad Request Server: Netscape-Enterprise/3.6 SP3>>>>>> Your browser>>>>>> sent a message this server could not understand. ---->>>>>> >>>>>> Could someone please explain the linebreak issue, and provide me>>>>>> with the>>>>>> appropriate information I'll need to perform this connection?>>>>>> >>>>>> Thanks in Advance!!>>>>>> >>>>>> -Robert>>>>>> >>>>>> >>>>>> ------------------------------------------------------------->>>>>> 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/>>>>> >>>>> >>>>> >>>>> Sincerely,>>>>> Kenneth Grome>>>>> >>>>> --------------------------------------------------->>>>> WebDNA Professional Training and Development Center>>>>> 175 J. Llorente Street +63 (32) 255-6921>>>>> Cebu City, Cebu 6000 kengrome@webdna.net>>>>> Philippines http://www.webdna.net>>>>> --------------------------------------------------->>>>> >>>>> ------------------------------------------------------------->>>>> 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/>>>> >>>> ------------------------------------------------------------->>>> 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/>>> >>> >>> ------------------------------------------------------------->>> 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/>> >> ------------------------------------------------------------->> 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/> > > -------------------------------------------------------------> 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/-------------------------------------------------------------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/
Alain Russell
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:
Number of Feilds Passed to [append] (2000)
WebCatalog for Linux users!! (2000)
[middle] (2000)
no time stamp & different times from emailer (1998)
Safari browser and WebDNA set-cookies (2003)
WebCat2 beta 11 - new prefs ... (1997)
WebCat2.0b15-to many nested [xx] tags (1997)
WebCat2 beta 11 - new prefs ... (1997)
Appendfile memory usage (redux) (2003)
Locking up with WebCatalog... (1997)
Safari browser and WebDNA set-cookies (2003)
WebCat2 - [SendNews] (1997)
pop up building with summarize (1998)
How do you hide [math]stuff[/math] (1997)
redirect with frames (1997)
[format] (1998)
AOL refuses some e-mails (2000)
WebCommerce: Folder organization ? (1997)
[shownext max=?] armed (1997)
snicker, snicker (1997)