Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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
Reply With Quote
  #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,102
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
Reply With Quote
  #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
Reply With Quote
  #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
Reply With Quote
  #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
Reply With Quote
  #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 -
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:49 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.