how to submit a request on a webserver

I have this url that submit a request on the webserver to generate a report, how can I submit this request through ? once the request is executed , I need to open the same report in pdf format.... which I know how to do, but not able to submit this request.

any help?

http://maroa/acweb/maroa/StrategicPolicyAnalysis/UtilizationRpt.rox?Submit&__scheduleType=background& __overwrite=new&__outputname=/StrategicPolicyAnalysis/temp.roi
Who is Participating?
sanjaypandeyConnect With a Mentor Author Commented:
I was able to resolve it, had to change the report request URL.

Joel CoehoornDirector of Information TechnologyCommented:
Look at, or if that won't do it
sanjaypandeyAuthor Commented:
Thanks I will do research on that...

Do you have any example to go with it.

7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

Joel CoehoornDirector of Information TechnologyCommented: is very easy to use.  Just trust intellisense to show you what you need to use it and you'll do fine.  The only problem you might have is if you need to authenticate first.
sanjaypandeyAuthor Commented:
Hello, I was trying to use the code below, but somehow its freezing afer submitting the request....  so the report get generated on the report server but I dont get the output in the PDF because its some how not moving beyond this line

strm = New StreamReader(myResponse.GetResponseStream(), False)

any help please
varReportURL = "http://maroa/acweb/maroa/StrategicPolicyAnalysis/PPM.rox?Submit&__scheduleType=sync&__overwrite=new&__outputname=/StrategicPolicyAnalysis/temp8.roi&" & Server.UrlEncode(varPARAMETERS)
        'Dim strm As StreamReader
      Dim myReq As HttpWebRequest = HttpWebRequest.Create(varReportURL)
        myReq.Method = "POST"
        myReq.ContentType = "application/x-www-form-urlencoded"
        myReq.ContentLength = 2
        myReq.Timeout = 9000000
        Dim myResponse As HttpWebResponse = myReq.GetResponse
        Dim m_sPageResponded As String
        m_sPageResponded = myResponse.ResponseUri.ToString()
        Dim strm As StreamReader
        strm = New StreamReader(myResponse.GetResponseStream(), False)
        Dim sLine As String = "abc"
        While Not IsDBNull(sLine)
          sLine = strm.ReadLine()
        End While

Open in new window

Joel CoehoornDirector of Information TechnologyCommented:
Looks like it might timeout it you waited about 3 months.  
sanjaypandeyAuthor Commented:
looks like I am step closer... in that its not freezing up.....using this code below but its executing the code to display the report before report generation completes...    any thoughts or help

 varReportURL = "http://maroa/acweb/maroa/StrategicPolicyAnalysis/PPM.rox?Submit&__scheduleType=immediate&__overwrite=new&__outputname=/StrategicPolicyAnalysis/temp91.roi&" & Server.UrlEncode(varPARAMETERS)

        Dim myReq As HttpWebRequest = HttpWebRequest.Create(varReportURL)
        myReq.Method = WebRequestMethods.Http.Get
        Dim myResponse As HttpWebResponse = myReq.GetResponse
        Dim sline As String = ""
        Dim reader As New StreamReader(myResponse.GetResponseStream())
        Dim tmp As String = reader.ReadToEnd()
        varReportURL = "http://maroa/acweb/maroa/StrategicPolicyAnalysis/temp91.roi?ViewPage&format=pdf&action=view&operation=open"
        Response.Write("<script>'" + varReportURL + "','','_target=blank', 'width=1000,height=600');</script>")

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.