Thanks Ben. I will give this a try too.

MC

At 12:33 AM 10/21/2010, you wrote:
>I have done it this way
>
><pre>
>
><@ASSIGN request$fromUPS <@URL
>location="<https://www.ups.com/ups.app/xml/Rate>https://www.ups.com/ups.app/xml/Rate";
>useragent="Witango Server <@VERSION><@CHAR 13><@CHAR
>10>Content-Type: application/x-www-form-urlencoded"
>waitforresult=true postargs='<?xml version="1.0"?><@CHAR 13><@CHAR
>10><@VAR request$upsdom1><@CHAR 13><@CHAR 10><?xml
>version="1.0"?><@CHAR 13><@CHAR 10><@VAR request$upsdom2>'
>detailedresponse=false>>
>
></pre>
>
>
>
>On Oct 20, 2010, at 11:50 PM, Robert Garcia wrote:
>
>>I missed the authorization part, you will have to add that header
>>in there also.
>>
>>><@url location="<http://www.witango.com>www.witango.com"
>>>from="[email protected]<@crlf>Authorization: basic<@crlf>Key: yourkeyhere">
>>
>>--
>>
>>Robert Garcia
>>President - BigHead Technology
>>VP Application Development - <http://eventpix.com>eventpix.com
>>15520 Coutelenc Rd
>>Magalia, Ca 95954
>>ph: 530.645.4040 x222 fax: 530.645.4040
>><mailto:[email protected]>[email protected] -
>><mailto:[email protected]>[email protected]
>><http://bighead.net/>http://bighead.net/ - http://eventpix.com/
>>
>>On Oct 20, 2010, at 11:28 PM, Robert Garcia wrote:
>>
>>>What they are asking you to do is to create an http request, and
>>>submit, with a special http header. I don't believe this is
>>>possible with @URL. You have to use a language like PHP or JAVA or
>>>.NET that allows you to construct an http request at the header level.
>>>
>>>Now, there may be a trick you can do, I am sorry, it has been
>>>years since I have had my sleeves rolled up with witango. I think
>>>I remember doing this...
>>>
>>>If you look at the @URL documentation, it says that you can set a
>>>few http header values, like FROM. So if you put <@url
>>>location="some url"
>>>from="<mailto:[email protected]>[email protected]"> then it would
>>>construct a http request, something like:
>>>
>>>GET / HTTP/1.1
>>>Host: <http://www.witango.com>www.witango.com
>>>User-agent: Mozilla something or other
>>>From: <mailto:[email protected]>[email protected]
>>>
>>>Now how this works, is that each of those header lines ends in
>>>CRLF, then at the end of all headers, are 2 CRLFs, then the body
>>>of the http request. The trick is this, try doing this:
>>>
>>><@url location="<http://www.witango.com>www.witango.com"
>>>from="[email protected]<@crlf>Key: yourkeyhere">
>>>
>>>That will actually create your custom header of Key: yourkeyhere.
>>>I think I have done this before, and it worked.
>>>
>>>
>>>--
>>>
>>>Robert Garcia
>>>President - BigHead Technology
>>>VP Application Development - <http://eventpix.com>eventpix.com
>>>15520 Coutelenc Rd
>>>Magalia, Ca 95954
>>>ph: 530.645.4040 x222 fax: 530.645.4040
>>><mailto:[email protected]>[email protected] -
>>><mailto:[email protected]>[email protected]
>>><http://bighead.net/>http://bighead.net/ - http://eventpix.com/
>>>
>>>On Oct 20, 2010, at 4:07 PM, MC Tay wrote:
>>>
>>>>Hi:
>>>>
>>>>I'm trying to setup a credit card transaction call to a merchant
>>>>account and they require an HTTP Authentication with the
>>>>following information:
>>>>
>>>>Authorization: Basic
>>>>Content-type: test/xml
>>>>Key: XXXXXYYYYYZZZZZ
>>>>
>>>>How do I do that in Witango? Can I use <@URL>? Please help.
>>>>
>>>>Thanks!
>>>>
>>>>MC
>>>>
>>>>
>>>>
>>>>----------------------------------------
>>>>
>>>>To unsubscribe from this list, please send an email to
>>>><mailto:[email protected]>[email protected] with
>>>>"unsubscribe witango-talk" in the body.
>>>
>>>
>>>
>>>----------------------------------------
>>>
>>>To unsubscribe from this list, please send an email to
>>><mailto:[email protected]>[email protected] with
>>>"unsubscribe witango-talk" in the body.
>>
>>
>>
>>----------------------------------------
>>
>>To unsubscribe from this list, please send an email to
>><mailto:[email protected]>[email protected] with "unsubscribe
>>witango-talk" in the body.
>>
>
>Ben Johansen
><http://www.webspinr.com>http://www.webspinr.com
><mailto:[email protected]>[email protected]
>Phone: 360-597-3372
>Mobile: 360-600-7775
>
>
>
>
>
>----------
>To unsubscribe from this list, please send an email to
><mailto:[email protected]>[email protected] with "unsubscribe
>witango-talk" in the body.


----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.

Reply via email to