RE: [WebDNA] bug in sending & character to DOS
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 104724
interpreted = N
texte = Thanks Marc. Strange results.If I send this:[dos]curl -d 'apiKey=3Dk%&format=3Dxml%&token=3Dt' -k =https://rpxnow.com/api/v2/auth_info[/dos]Then the DOS command that gets run is>curl -d "apiKey=3Dk&token=3Dt"The & gets through! But the middle parameter is missing. If I move =things around, the middle parameter is always the one missing. If I add =a fourth parameter, the output is totally messed up like this.>curl -d "apiKey=3Dk&token=3Dt//rpxnow.com/api/v2/auth_infoAny other ideas? Hate to go back to TCPConnect.-----Original Message-----From: Marc Thompson [mailto:mthompson@media.utah.edu]=20Sent: Friday, February 12, 2010 11:02 AMTo: talk@webdna.usSubject: Re: [WebDNA] bug in sending & character to DOSTry escaping the & with %% or ^[dos]curl -d "apiKey=3Dkey%%&token=3Dtoken" -kOlin Lagon wrote:> This is probably a bug nobody cares about, but I can't seem to pass =the &> character to DOS. When I try something like this:>=20> [dos]curl -d "apiKey=3Dkey&token=3Dtoken" -k> https://rpxnow.com/api/v2/auth_info[/dos]>=20> The command sent to DOS is=20>=20>> curl -d "apiKey=3Dkeytoken=3Dtoken" -k =https://rpxnow.com/api/v2/auth_info>=20> Notice the & sign is missing.>=20> So this basically makes using curl not possible in this way from =Windows. I> tried a bunch of other tests and no matter what I can't get the & =character> to be sent to DOS, even in %26 format. I even tried using variables =instead> of directly keying in the text into the DOS command.>=20> Anybody else find this bug?>=20> It's important to me because curl will fetch a page in less than a =second> whereas TCPconnect takes well over 5 seconds.>=20> Thanks, Olin>=20> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: =http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288> .>=20--=20-------------------------------------------Marc ThompsonSoftware EngineerOffice of Information TechnologyUniversity of Utah801.585.9264marc.thompson@utah.edu-------------------------------------------
Associated Messages, from the most recent to the oldest:
Thanks Marc. Strange results.If I send this:[DOS]curl -d 'apiKey=3Dk%&format=3Dxml%&token=3Dt' -k =https://rpxnow.com/api/v2/auth_info[/dos]Then the DOS command that gets run is>curl -d "apiKey=3Dk&token=3Dt"The & gets through! But the middle parameter is missing. If I move =things around, the middle parameter is always the one missing. If I add =a fourth parameter, the output is totally messed up like this.>curl -d "apiKey=3Dk&token=3Dt//rpxnow.com/api/v2/auth_infoAny other ideas? Hate to go back to TCPConnect.-----Original Message-----From: Marc Thompson [mailto:mthompson@media.utah.edu]=20Sent: Friday, February 12, 2010 11:02 AMTo: talk@webdna.usSubject: Re: [WebDNA] bug in sending & character to DOSTry escaping the & with %% or ^[DOS]curl -d "apiKey=3Dkey%%&token=3Dtoken" -kOlin Lagon wrote:> This is probably a bug nobody cares about, but I can't seem to pass =the &> character to DOS. When I try something like this:>=20> [DOS]curl -d "apiKey=3Dkey&token=3Dtoken" -k> https://rpxnow.com/api/v2/auth_info[/dos]>=20> The command sent to DOS is=20>=20>> curl -d "apiKey=3Dkeytoken=3Dtoken" -k =https://rpxnow.com/api/v2/auth_info>=20> Notice the & sign is missing.>=20> So this basically makes using curl not possible in this way from =Windows. I> tried a bunch of other tests and no matter what I can't get the & =character> to be sent to DOS, even in %26 format. I even tried using variables =instead> of directly keying in the text into the DOS command.>=20> Anybody else find this bug?>=20> It's important to me because curl will fetch a page in less than a =second> whereas TCPconnect takes well over 5 seconds.>=20> Thanks, Olin>=20> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: =http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288> .>=20--=20-------------------------------------------Marc ThompsonSoftware EngineerOffice of Information TechnologyUniversity of Utah801.585.9264marc.thompson@utah.edu-------------------------------------------
"Olin Lagon"
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:
View order not right (1997)
Email Setup problems (2002)
Showif Error Generated... (2003)
[WebDNA] location line item change password (2011)
Webcatalog quitting (1997)
WebCat2: Formulas.db question (1997)
WebDNA for Dummies (2004)
OT Pager notification of completed orders (1998)
WebCat2: Master Counter snippet (1997)
(thx) automating a POST (2002)
What am I doing wrong? (2000)
Re(2): lookup limitation ? (2003)
Signal Raised (1997)
Search in 2 or more catalogs (1997)
Newbie from and old bee (1997)
[WebDNA] Solaris version? (2008)
RE: [WebDNA] WebDNA glitch, no response required ... (2009)
Authenticating users without dialog box (1997)
OT: Web Cams (2003)
Possible Bug in 2.0b15.acgi (1997)