HttpOpenRequest() Api
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: HttpOpenRequest() Api

  1. #1
    Join Date
    Sep 2002
    Location
    india
    Posts
    142

    Unhappy HttpOpenRequest() Api

    Hi all,

    Have a small problem related to uploading files to an IIS server.
    I am only able to uploaded files to an existing directory
    in the server machine.
    What i want to do is that even if the user gives an non-existing
    directory the program should create and save the file in that
    directory.

    I am using the HttpOpenRequest Api as follows:


    HttpOpenRequest(hConnect, "PUT","/temp/pag.txt",NULL, NULL, NULL,0,0);

    Here suppose the Directory "temp" is not present in the server
    machine my program fails...how can i create that "temp" folder and then save the "pag.txt" file.

    thanking you..

    ashwath.

  2. #2
    Join Date
    Feb 2002
    Posts
    5,758
    Did you design and develop the HTTP server? I do not think the client has control over the server.

    Kuphryn

  3. #3
    Join Date
    Sep 2002
    Location
    india
    Posts
    142
    hi,

    I am uploading to an IIS server...I have configured the server to
    have write access so that i can upload files...

  4. #4
    Join Date
    May 2001
    Location
    Toronto
    Posts
    85
    I think you'd better write a ISAPI dll in your IIS server side
    If i am senseless and i could answer your question, i will.

  5. #5
    Join Date
    Sep 2002
    Location
    india
    Posts
    142
    hi ,

    Thank you for that....

    ashwath.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center