Re: [WebDNA] bug in sending & character to DOS
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 104727
interpreted = N
texte = I think you want to use curl this wayie curl -d apKey=3Dk -d token=3Dt -d format=3DxmlOn Feb 12, 2010, at 3:33 PM, Olin Lagon wrote:> Thanks Marc. Strange results.>=20> If I send this:>=20> [dos]curl -d 'apiKey=3Dk%&format=3Dxml%&token=3Dt' -k =https://rpxnow.com/api/v2/auth_info[/dos]>=20> Then the DOS command that gets run is>=20>> curl -d "apiKey=3Dk&token=3Dt">=20> 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.>=20>> curl -d "apiKey=3Dk&token=3Dt//rpxnow.com/api/v2/auth_info>=20> Any other ideas? Hate to go back to TCPConnect.>=20> -----Original Message-----> From: Marc Thompson [mailto:mthompson@media.utah.edu]=20> Sent: Friday, February 12, 2010 11:02 AM> To: talk@webdna.us> Subject: Re: [WebDNA] bug in sending & character to DOS>=20> Try escaping the & with %% or ^> [dos]curl -d "apiKey=3Dkey%%&token=3Dtoken" -k>=20> Olin 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> --=20> -------------------------------------------> Marc Thompson> Software Engineer> Office of Information Technology> University of Utah> 801.585.9264> marc.thompson@utah.edu> ------------------------------------------->=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
Associated Messages, from the most recent to the oldest:
I think you want to use curl this wayie curl -d apKey=3Dk -d token=3Dt -d format=3DxmlOn Feb 12, 2010, at 3:33 PM, Olin Lagon wrote:> Thanks Marc. Strange results.>=20> If I send this:>=20> [DOS]curl -d 'apiKey=3Dk%&format=3Dxml%&token=3Dt' -k =https://rpxnow.com/api/v2/auth_info[/dos]>=20> Then the DOS command that gets run is>=20>> curl -d "apiKey=3Dk&token=3Dt">=20> 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.>=20>> curl -d "apiKey=3Dk&token=3Dt//rpxnow.com/api/v2/auth_info>=20> Any other ideas? Hate to go back to TCPConnect.>=20> -----Original Message-----> From: Marc Thompson [mailto:mthompson@media.utah.edu]=20> Sent: Friday, February 12, 2010 11:02 AM> To: talk@webdna.us> Subject: Re: [WebDNA] bug in sending & character to DOS>=20> Try escaping the & with %% or ^> [DOS]curl -d "apiKey=3Dkey%%&token=3Dtoken" -k>=20> Olin 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> --=20> -------------------------------------------> Marc Thompson> Software Engineer> Office of Information Technology> University of Utah> 801.585.9264> marc.thompson@utah.edu> ------------------------------------------->=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
Bob Minor
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:
WebCat2.0 [format thousands .0f] no go (1997)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
Test ... (2003)
[TEXT SECURE=T] (2000)
Group Updates (1998)
Sandbox Question (2003)
[subtotal] and others (1997)
WebTV, IPAddress, Cookies, IDEAS?? (1998)
# of real domains on 1 web server (1997)
NT considerations (1997)
alternatives for WebDNA (2004)
Roundup (2001)
Sizes and colors (1999)
Web Catalog 2 demo (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
Quit revisited (1997)
shipCost not working v2.1b4 (1997)
Fwd: more ! testing (1997)
Unexpected comparison behavior change in 4.5.1 (2003)
Document Contains No Data! (1997)