Alaska Software Inc. - How to POST multipart request to waa1gate.exe/waa1srv
Username: Password:
AuthorTopic: How to POST multipart request to waa1gate.exe/waa1srv
Vladimir IahnencoHow to POST multipart request to waa1gate.exe/waa1srv
on Mon, 12 Dec 2005 14:57:01 -0500
Hi All,
Is it possible to post multipart requests to waa server? I want to send some 
form data and a txt file attached.
I created a multipart request and tried to post it to a php file and then to 
wa1gate. With php it worked, I could see php $_POST variables, but with 
waagate the request hung the application for some time and I had to exit 
from the debugger.
I tried to wrap a file into GET request to waa1gate, but noticed CR 
characters in the request resulted to the same issues.
Does anybody have some experience how to send a txt file to waa server?

Thanks,
Vladimir
Phil Ide
Re: How to POST multipart request to waa1gate.exe/waa1srv
on Tue, 13 Dec 2005 10:21:21 +0000
Vladimir,

> Is it possible to post multipart requests to waa server? I want to send some 
> form data and a txt file attached.
> I created a multipart request and tried to post it to a php file and then to 
> wa1gate. With php it worked, I could see php $_POST variables, but with 
> waagate the request hung the application for some time and I had to exit 
> from the debugger.
> I tried to wrap a file into GET request to waa1gate, but noticed CR 
> characters in the request resulted to the same issues.
> Does anybody have some experience how to send a txt file to waa server?

You can't send file uploads to WAA.  There are two reasons for this:

1.  The WAA engine cannot handle file uploads
2.  There is a bug in waa1gate.exe which truncates the input-data buffer on
file data.

Actually, point (1) above could easily be fixed, and point (2) is even
easier if you have the professional subscription and therefore the source
to waa1gate.exe.  I explained the bug in waa1gate to Till in November last
year, so Alaska are aware of it, but it has not been a priority for them to
fix.

Regards,

Phil Ide

*******************************************
*   Xbase++ FAQ, Libraries and Sources:   *
*   goto: http://www.idep.org.uk/xbase    *
* --------------------------------------- *
* www.xodc.org.uk - openSource Dev-Center *
*******************************************

A bird in the hand makes it hard to blow your nose.
Vladimir IahnencoRe: How to POST multipart request to waa1gate.exe/waa1srv
on Tue, 13 Dec 2005 09:02:48 -0500
Thanks, Phil,
I think we have professional subscription, but unfortunately it is not my 
priority to fix any Alaska's stuff.
Could you pls give me details of the bug in waa1gate, we are extensively 
using GET requests with xml messages.

Thanks in advance,

Vladimir


"Phil Ide" <phil@xodc.org.uk> wrote in message 
news:6ud1k5aby5oh.dlg@xodc.org.uk...
> Vladimir,
>
>> Is it possible to post multipart requests to waa server? I want to send 
>> some
>> form data and a txt file attached.
>> I created a multipart request and tried to post it to a php file and then 
>> to
>> wa1gate. With php it worked, I could see php $_POST variables, but with
>> waagate the request hung the application for some time and I had to exit
>> from the debugger.
>> I tried to wrap a file into GET request to waa1gate, but noticed CR
>> characters in the request resulted to the same issues.
>> Does anybody have some experience how to send a txt file to waa server?
>
> You can't send file uploads to WAA.  There are two reasons for this:
>
> 1.  The WAA engine cannot handle file uploads
> 2.  There is a bug in waa1gate.exe which truncates the input-data buffer 
> on
> file data.
>
> Actually, point (1) above could easily be fixed, and point (2) is even
> easier if you have the professional subscription and therefore the source
> to waa1gate.exe.  I explained the bug in waa1gate to Till in November last
> year, so Alaska are aware of it, but it has not been a priority for them 
> to
> fix.
>
> Regards,
> -- 
> Phil Ide
>
> *******************************************
> *   Xbase++ FAQ, Libraries and Sources:   *
> *   goto: http://www.idep.org.uk/xbase    *
> * --------------------------------------- *
> * www.xodc.org.uk - openSource Dev-Center *
> *******************************************
>
> A bird in the hand makes it hard to blow your nose.
Phil Ide
Re: How to POST multipart request to waa1gate.exe/waa1srv
on Tue, 13 Dec 2005 16:38:30 +0000
Vladimir,

> I think we have professional subscription, but unfortunately it is not my 
> priority to fix any Alaska's stuff.
> Could you pls give me details of the bug in waa1gate, we are extensively 
> using GET requests with xml messages.

If you are using waa1gate.exe, I can send you both the source with the fix
and a precompiled executable, but this won't fix the problem that WAA
doesn't know how to handle file data.

Regards,

Phil Ide

*******************************************
*   Xbase++ FAQ, Libraries and Sources:   *
*   goto: http://www.idep.org.uk/xbase    *
* --------------------------------------- *
* www.xodc.org.uk - openSource Dev-Center *
*******************************************

Windows Error: 002 - Program executed without crash!
Vladimir IahnencoRe: How to POST multipart request to waa1gate.exe/waa1srv
on Wed, 21 Dec 2005 18:20:04 -0500
Phil,
Some time ago I sent you an email.... Could you send me the source?
Thanks,
Vladimir

"Phil Ide" <phil@xodc.org.uk> wrote in message 
news:kas26hvqopui$.dlg@xodc.org.uk...
> Vladimir,
>
>> I think we have professional subscription, but unfortunately it is not my
>> priority to fix any Alaska's stuff.
>> Could you pls give me details of the bug in waa1gate, we are extensively
>> using GET requests with xml messages.
>
> If you are using waa1gate.exe, I can send you both the source with the fix
> and a precompiled executable, but this won't fix the problem that WAA
> doesn't know how to handle file data.
>
> Regards,
> -- 
> Phil Ide
>
> *******************************************
> *   Xbase++ FAQ, Libraries and Sources:   *
> *   goto: http://www.idep.org.uk/xbase    *
> * --------------------------------------- *
> * www.xodc.org.uk - openSource Dev-Center *
> *******************************************
>
> Windows Error: 002 - Program executed without crash!
Phil Ide
Re: How to POST multipart request to waa1gate.exe/waa1srv
on Thu, 22 Dec 2005 13:09:45 +0000
Vladimir,

> Some time ago I sent you an email.... Could you send me the source?

Aaaargghhh!

Sorry, I got side-tracked.  Check your mailbox.

Regards,

Phil Ide

*******************************************
*   Xbase++ FAQ, Libraries and Sources:   *
*   goto: http://www.idep.org.uk/xbase    *
* --------------------------------------- *
* www.xodc.org.uk - openSource Dev-Center *
*******************************************

For all you do, this SCUD's for you.