Javascript XMLHttpRequest doesn't allow cross domain connection. So
via javascript to call another site is not possible.

Better do it via HttpWebRequest object directly, use POST verb and
send object encoded manually.

http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx


"The GetRequestStream method returns a stream to use to send data for
the HttpWebRequest. After the Stream object has been returned, you can
send data with the HttpWebRequest by using the Stream.Write method.
If an application needs to set the value of the ContentLength
property, then this must be done before retrieving the stream.
You must call the Stream.Close method to close the stream and release
the connection for reuse. Failure to close the stream causes your
application to run out of connections."

http://msdn.microsoft.com/en-us/library/d4cek6cc.aspx



On Aug 31, 1:10 pm, Jamie Fraser <[email protected]> wrote:
> You could do it using Javascript. ASP.Net is a server side technology
> however, so on its own is not suitable for this task.
>
>
>
> On Mon, Aug 30, 2010 at 7:58 PM, neuromancer <[email protected]> wrote:
> > Suppose I want to make a asp.net application that fills out a form,
> > perhaps an amtrak form.  First the user might say on my form (not the
> > Amtrak form) that he wants to go to Tuscaloosa, and he hits submit,
> > and I open up the Amtrak website, fill it the appropriate fields, make
> > the submit button click on, and then I get the resulting URL so I can
> > use it in my asp.net application.
> > I'm pretty sure this is completely impossible, but a friend of mine
> > asked me to do something like this for him, and I'm just checking.
> > FN

Reply via email to