Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 4th, 2003, 08:22 AM
Registered User
 
Join Date: Jun 2003
Location: San Antonio, tx, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default HTTP Post .Net

Hello,
 Can someone show me how to send HTTP Post data to another URL that will process the data in asp.net


Thanks:)
Suzy
  #2 (permalink)  
Old June 5th, 2003, 06:01 PM
Friend of Wrox
Points: 3,489, Level: 24
Points: 3,489, Level: 24 Points: 3,489, Level: 24 Points: 3,489, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Suzy,

I am not sure what you are asking.

Do you need two ASP.NET pages to talk to eachother?

Hal Levy
Daddyshome, LLC
  #3 (permalink)  
Old June 13th, 2003, 08:26 AM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Everytime you browser goes to a site it sends HTTP request to the web server to request that page. Within this request there are three elements. Each element contains different information. What information are you looking for?

The Request Line

The HTTP header

The HTTP body
  #4 (permalink)  
Old June 18th, 2003, 10:00 AM
Registered User
 
Join Date: Jun 2003
Location: San Antonio, tx, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
  Let me see if I can explain this a little better. I have solved my problem. I dont know if its the best solution. I had to send and XML string to another site. I don't think the other site is asp.net page. So here was my solution. Please forgive the display.

<form id="Form1" action="http://someothersite/xxx" method="post" target="_blank">
     <input type="hidden" size="200" value="<?xml version='1.0' encoding='UTF-8'?>
<main>
    <info>
    <id><% =session("id") %></id>
    <id1><%= session("id1") %></id1>
    <id2><% = session("id2") %></id2>
    </Info>
    <myinfo>
    <myid><% =session("myid") %></myid>
    <me1><% =session("me1") %></me1>
    <me2><% =session("me2") %></me2>
    <me3><% =session("me3") %></me3>
    <me4><%= session("me4") %></me4>
    <me5><% =session("me5") %></me5>
    </myinfo>
    </main>"
     name="signon">
     <INPUT type="submit" value="Go">
    </form>


I would like to do this server side because of the session variables. I saw some info on HttpWebRequest and HttpWebResponse and thought I could try that but I ran out of time. If you know of a better way please share. Thanks Alot!


Thanks for your response.
:D
  #5 (permalink)  
Old June 26th, 2003, 09:50 AM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't know what your trying to do. I tried to use your code to see but nothing happened when I put it into a html page. I went to the http:\\www.someaddress.com but it did not show anything at all.

I don't know I am a bit confused.

Thanks
  #6 (permalink)  
Old June 26th, 2003, 12:20 PM
Registered User
 
Join Date: Jun 2003
Location: San Antonio, tx, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

that "http://someothersite/xxx" is an example - its bogus -


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB.net http post with file Master .NET Framework 1.x 0 November 20th, 2008 09:21 AM
HTTP post silver_scar C# 2005 0 July 31st, 2006 09:52 AM
Consuming web services in asp.net using http post dpk100 .NET Web Services 1 May 4th, 2005 02:03 AM
Simple HTTP POST .Net web service? DaveCollinsPenchant .NET Web Services 1 September 10th, 2004 04:46 PM
HTTP-POST with C# jcascio ASP.NET 1.0 and 1.1 Professional 3 April 12th, 2004 01:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.