error 20011 - WeOnlyDo Discussion board

error 20011 (wodHttpDLX)

by z, Wednesday, April 09, 2008, 09:03 (6073 days ago)

after using http.request.formupload to upload a file

when the file is done i the next page i need to use
http.request.formpost.add to describe the file

yet im getting ...

20011 Could not set Content-Type header. Is it already set to some other value?

http.request.formpost.add is highlighted...

how do i fix?

Re: error 20011

by wodDamir, Wednesday, April 09, 2008, 12:30 (6073 days ago) @ z

Hi,

Can you show me a code snippet of what exactly you're doing?

How are you posting? Are you using blocking mode? Did you try our samples?

Regards,
Damba

Re: error 20011

by z, Thursday, April 10, 2008, 09:30 (6072 days ago) @ wodDamir

[code]
http.Request.FormUpload.Add allow_syndication , Yes
http.Request.FormUpload.AddFile field_uploadfile , lvFiles.ListItems.Item(1), video/avi
http.Post sUploadURL$
[/code]

after its done uploading


[code]
http.Request.FormPost.RemoveAll
http.Request.Formpost.Add field_myvideo_title , sTitle
[/code]


http.Request.Formpost is what its highlighting...

Re: error 20011

by woddrazen, Thursday, April 10, 2008, 12:05 (6072 days ago) @ z

Hi,


I cannot duplicate your issue. Here is my code:
[code]Set http1 = New wodHttpDLXCom

http1.Blocking = True
http1.Request.FormUpload.Add Name , drazen
http1.Request.FormUpload.AddFile TheFile , c:\test1.avi , video/avi
http1.Post http://www.weonlydo.com/HttpDLX/Demo/TestFormUpload.asp


Debug.Print http1.Response.Body & Success!

http1.Request.FormPost.RemoveAll

http1.Request.FormUpload.Add Name , drazen
http1.Request.FormUpload.AddFile TheFile , c:\test2.avi , video/avi
http1.Post http://www.weonlydo.com/HttpDLX/Demo/TestFormUpload.asp

Debug.Print http1.Response.Body & Success! [/code]
Can you maybe rewrite my sample to produce your issue? In sample I'm using our testing server for uploading files.

Hope I helped.


Regards,
Drazen