Multi-Part Forms - WeOnlyDo Discussion board

Multi-Part Forms (General questions)

by jack, Monday, December 15, 2008, 17:08 (5821 days ago)

Is there an example available of using wodHTTPDLX to post to a multi-part form?

I would like to use it to upload videos to a video site.

jack

Re: Multi-Part Forms

by wodDamir, Monday, December 15, 2008, 17:21 (5821 days ago) @ jack

Hi Jack,

Did you perhaps try our 5. Upload file to the server sample that comes with installation?

I believe that is what you are aiming towards.

Regards,
Damba

Re: Multi-Part Forms

by jack, Monday, December 15, 2008, 18:18 (5821 days ago) @ wodDamir

Hi Jack,

Did you perhaps try our 5. Upload file to the server sample that comes with installation?

I believe that is what you are aiming towards.

Regards,
Damba

Thanks Damba I'll give it a try.

Re: Multi-Part Forms

by jack, Monday, December 15, 2008, 18:34 (5821 days ago) @ jack

I took a look at 5 and I think I misled you... 5 uses .FormUpload.AddFile... That would be fine if I was looking to upload a file to my server...

My request is really more about posting using a multi-part form

I need to create multi-part form-parts

jack

Re: Multi-Part Forms

by wodDamir, Monday, December 15, 2008, 19:14 (5821 days ago) @ jack

Jack,

If you set DebugFile to C:debug.txt , you'll see that this uses a Multi-part request to server.

Can you please give me a sample of what exactly you want to do? A sample URL that contains the Form you want to upload content to?

Regards,
Damba

Re: Multi-Part Forms

by jack, Monday, December 15, 2008, 20:01 (5821 days ago) @ wodDamir

Jack,

If you set DebugFile to C:debug.txt , you'll see that this uses a Multi-part request to server.

Can you please give me a sample of what exactly you want to do? A sample URL that contains the Form you want to upload content to?

Regards,
Damba

Here's the url: http://videopancake.com/upload
you can login with this info:
username: jackd
pw: jack101

I will change it after you take a look...

Thanks,

jack

Re: Multi-Part Forms

by jackd, Monday, December 15, 2008, 20:04 (5821 days ago) @ jack

Jack,

If you set DebugFile to C:debug.txt , you'll see that this uses a Multi-part request to server.

Can you please give me a sample of what exactly you want to do? A sample URL that contains the Form you want to upload content to?

Regards,
Damba

Here's the url: http://videopancake.com/upload
you can login with this info:
username: jackd
pw: jack101

I will change it after you take a look...

Thanks,

jack

Whoops!!!

pw: jackd101

Re: Multi-Part Forms

by wodDamir, Monday, December 15, 2008, 20:31 (5821 days ago) @ jackd

Jack,

But this is actually exactly what you were reffering to. The page that uploads a file (and previous one) are all Form based. When you submit on one page, you are redirected to next one.

This is all done using HttpRequestFormPost and HttpRequestFormUpload objects.

If you're not sure what to send to server, perhaps using IEWatch or some other tool for analyzing HTTP protocol would be helpful. I.e. you can use IEWatch to access that page, and see exactly what is sent to server.

Then, you can use that information to mimic the IE behaviour.

Can you try something like that?

Regards,
Damba