I am Uploading file to another server using WinHttprequest 5.1 object..
Below is the piece of code that does this. The information from the file has
already been stored in the allbytes array in the last line.
This code uploads the file to a Win2000 server with out any problem. However
it gives an error 'Login request denied ' when the information is sent to a
win2003. Does anyone has any idea why this happens. It looks like the
setcredential is not working for the Win2003. How could I resolve this issue ?
I need your help as soon as possible.
Thanks
Tegest
Dim strDestURL As String
Dim strBoundary As String
strBoundary = "-----------------------7d2fa2cab1566" '
strdestserver ="http://10.15.205.288:5040" ' just an example
objHttp.SetTimeouts(60000, 60000, 60000, 60000)
objHttp.Open("GET", strDestServer, False)
objHttp.SetCredentials("domain\username", "pswd", 0)
objHttp.Send("")
strDestURL = strDestServer & "/rescenter/iresCenterUpload.asp"
objHttp.Open("POST", strDestURL, False)
objHttp.SetRequestHeader("Content-Type", "multipart/form-data; boundary=" &
strBoundary)
' Send the form information to the destination
objHttp.Send(allbytes)
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/