Need clean code for HttpWebRequest POST

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve

    #1

    Need clean code for HttpWebRequest POST

    Hi,

    Could someone post some clean code for a HTTPS POST request running from a
    server to a 3rd party server in an aspx page.
    I have some code that works unreliably. If I try the request from a few web
    pages it will not work reliably.

    I use ThreadPool.Queu eUserWorkItem, myHttpWebReques t1.BeginGetRequ estStream,
    myHttpWebReques t1.BeginGetResp onse.

    Does Microsoft’s .Net SSL socket code use blocking sockets by the way?

    If someone could post a sample with how to start the request with a
    ThreadPool.Regi sterWaitForSing leObject etc so the web page does not return
    straight away and some code that can handle many users it would be
    appreciated.

    Regards
    --
    Steve
  • Bob Barrows [MVP]

    #2
    Re: Need clean code for HttpWebRequest POST

    Steve wrote:[color=blue]
    > Hi,
    >
    > Could someone post some clean code for a HTTPS POST request running
    > from a server to a 3rd party server in an aspx page.
    > I have some code that works unreliably. If I try the request from a
    > few web pages it will not work reliably.
    >
    > I use ThreadPool.Queu eUserWorkItem,
    > myHttpWebReques t1.BeginGetRequ estStream,
    > myHttpWebReques t1.BeginGetResp onse.
    >[/color]
    There was no way for you to know it, but this is a classic asp newsgroup.
    While you may be lucky enough to find a dotnet-savvy person here who can
    answer your question, you can eliminate the luck factor by posting your
    question to a group where those dotnet-savvy people hang out. I suggest
    microsoft.publi c.dotnet.framew ork.aspnet.

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Comment

    Working...