FYI. Anything past the first ? will be ignored by the webserver as a URL, but WILL be passed to the .cgi in the environment variable for URL. It will then be up to the .cgi or whatever program, to decode the URL paramters and use them as such.
so http://somewebsite.com/foldername is the same URL to the webserver as http://somewebsite.com/foldername?andsomeother?data?to?be?passed?to?a?cgi? or?such PS. It's not good security to have the Password as part of the URL in plain text. >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Behalf Of David Tod >Sigafoos >Sent: Friday, April 22, 2005 10:15 AM >To: Craig Bennett >Subject: Re[2]: [U2] URL Encoding > > >Craig, > >Thursday, April 21, 2005, 4:28:33 PM, you wrote: > >CB> David, > >CB> if you are doing a POST, shouldn't this bit: > >> API=CustomsCN22&XM > >> L=<CustomsCP72V2Request USERID=91919191919 > >> PASSWORD=1919191919191><Option/><From > >>FirstName>John</FromFirstName><FromLastName>Smith > >></FromLastName><FromFirm>XYZ Co > >> rporation</FromFirm><FromAddress1>Suite >CB> A</FromAddress1><FromAddress2>1234 Etail > >> er Dr.</FromAddress2><FromUrbanization/><FromCity>Los >CB> Angeles</FromCity><FromSta > >> te>CA</FromState><FromZip5>90052</FromZip5> ... ></CustomsCP72V2Request> > >CB> be in the body rather than the url? if you are not sending >any content >CB> in the request (and all the parameters are in the url) you should >CB> probably use GET. > >I had tried both GET and POST. In both cases the url never got >encoded .. as i thought the manuals say > >CB> Off the top of my head maybe you need to: > >CB> addrequestparamter to add API with a value of CustomsCN22 >CB> then to add XML with a value containing your XML string. > >so as i *thought* addrequestparameter is for POST and used to build >the 'parameter'/'value' pairs .. > >CB> Either way, you would think the request process would >check that the url >CB> was correctly encoded. > >yes .. since there is no URLENCODE/URLDECODE commands .. yes you would >think it would do this. > >Thanks i will keep playing with this ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/