Multi-Part Forms (General questions)

by jack @, (5983 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

locked

Re: Multi-Part Forms

by wodDamir @, (5983 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

locked

Re: Multi-Part Forms

by jack @, (5983 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.

locked

Re: Multi-Part Forms

by jack @, (5983 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

locked

Re: Multi-Part Forms

by wodDamir @, (5983 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

locked

Re: Multi-Part Forms

by jack @, (5983 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

locked

Re: Multi-Part Forms

by jackd @, (5983 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

locked

Re: Multi-Part Forms

by wodDamir @, (5983 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

locked