Need some help HTTPRequest

T

Thank you

https://album.hot.net.il/Services/A...Activated=1&DateActivated=31/08/2005 12:56:25


Hi all ,
I'm having a small problem and need your advice.
I have WebService on running under 1.1. I have to call another website from
my
WebService , pass a quesry string and wait for a response and then continue.
How can I implement that ? I have tried HttpWebRequest , HttpRequest.
Take a look at this code please:


string tempdata="";
HttpWebRequest _rqstObj =
(HttpWebRequest)WebRequest.Create("http://somewebsite.com/Setup/AlbumA...Activated=1&DateActivated=31/08/2005 12:56:25");
_rqstObj.Method = "POST";
_rqstObj.ContentType = "text/html";
StreamWriter _wrt = new StreamWriter(_rqstObj.GetRequestStream());
_wrt.Write(tempdata);

Why does it work ? what am I doing wrong?

10x
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top