Re: User/pass with tcpconnect
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 28036
interpreted = N
texte = On 2/24/00 3:49 pm, Bob Minor so noted...>OK,I tried this:>>[TCPConnect host=www.blah.com&port=8000]>[TCPSend]GET /process HTTP/1.0[UnURL]%0D%0A%0D%0A[/UnURL]Authorization:>Basic [encrypt>method=base64]myuser:mypass[/encrypt][UnURL]%0D%0A%0D%0A[/UnURL][/TCPSen>d]>[/TCPConnect]>>>and this:>>[TCPConnect host=www.blah.com&port=8000]>[TCPSend]GET /process HTTP/1.0 Authorization: Basic [encrypt>method=base64]username:password[/encrypt][UnURL]%0D%0A%0D%0A[/UnURL][/TCPSen>d]>[/TCPConnect]>>and got nothing, I also tried a few others as well.>>Do you have this working somewhere, that you could pull your code?Here's one I'm currently using. I'm sure it's passing more data then necessary, but it's working, so I don't mess : )In this case, [outData] is a text variable containing all the data pairs I'm passing for a form submission. [user] and [pass] are the username and password. I'm only using line feeds at the beginning of each line since the carriage returns are added from the actual carriage return ending the previous line (this template is saved as a Mac text file).[text]LF=[unURL]%0A[/unURL][/text][TCPConnect host=someSite.com&port=5555][TCPSend]POST /FMRes/FMPro HTTP/1.0[LF]Referer: http:/[thisURL][LF]Connection: Close[LF]User-Agent: WebCatalog (Macintosh)[LF]Host: someSite.com:5555[LF]Accept: */*[LF]Accept-Language: English, en[LF]Accept-Charset: iso-8859-1,*,utf-8[LF]Authorization: Basic [encrypt method=base64][user]:[pass][/encrypt][LF]Content-type: application/x-www-form-urlencoded[LF]Content-length: [countChars][outData][/countChars][LF][LF][outData][LF][/TCPSend][/TCPConnect]Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to
.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
Associated Messages, from the most recent to the oldest:
On 2/24/00 3:49 pm, Bob Minor so noted...>OK,I tried this:>>[TCPConnect host=www.blah.com&port=8000]>[tcpsend]GET /process HTTP/1.0[unurl]%0D%0A%0D%0A[/UnURL]Authorization:>Basic [encrypt>method=base64]myuser:mypass[/encrypt][unurl]%0D%0A%0D%0A[/UnURL][/TCPSen>d]>[/TCPConnect]>>>and this:>>[TCPConnect host=www.blah.com&port=8000]>[tcpsend]GET /process HTTP/1.0 Authorization: Basic [encrypt>method=base64]username:password[/encrypt][unurl]%0D%0A%0D%0A[/UnURL][/TCPSen>d]>[/TCPConnect]>>and got nothing, I also tried a few others as well.>>Do you have this working somewhere, that you could pull your code?Here's one I'm currently using. I'm sure it's passing more data then necessary, but it's working, so I don't mess : )In this case, [outData] is a text variable containing all the data pairs I'm passing for a form submission. [user] and [pass] are the username and password. I'm only using line feeds at the beginning of each line since the carriage returns are added from the actual carriage return ending the previous line (this template is saved as a Mac text file).[text]LF=[unurl]%0A[/unURL][/text][TCPConnect host=someSite.com&port=5555][tcpsend]POST /FMRes/FMPro HTTP/1.0[LF]Referer: http:/[thisurl][LF]Connection: Close[LF]User-Agent: WebCatalog (Macintosh)[LF]Host: someSite.com:5555[LF]Accept: */*[LF]Accept-Language: English, en[LF]Accept-Charset: iso-8859-1,*,utf-8[LF]Authorization: Basic [encrypt method=base64][user]:[pass][/encrypt][LF]Content-type: application/x-www-form-urlencoded[LF]Content-length: [countchars][outData][/countChars][LF][LF][outData][LF][/TCPSend][/TCPConnect]Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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
Rob Marquardt
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:
2.0.1 new commands and contexts (1997)
WebCatalog can't find database (1997)
ShowIf Question (1998)
wired [protect] action? (1998)
File Upload (1997)
[WebDNA] preventing hackers from posting their own (altered) version of my form? (2009)
Almost a there but..bye bye NetCloak (1997)
[Announce]: Web server security and password protection (1997)
[ot] g5 xserve drives (2004)
Looking up two prices in database? (1997)
[WebDNA] Quick grep question (2009)
Help name our technology! (1997)
Server Freeze (1998)
Email within tmpl ? (1997)
Nested Loops and SHOWIFs (1997)
Reversing [ipaddress] normalization (1998)
Opinion: [input] should be called [output] ... (1997)
Help name our technology! I found it (1997)
[math] show=F exists? (1997)
Back to Authnet with storebuilder (2003)