HTTP POST From Page

Is is possible and if so would anyone have a brief example of submitting data from an ASP page to another server via HTTP, using a POST method. Essentially duplicating an HTML FORM.

Further details, if availalbe would be the use of username/password (basic) authentication and the HTTP connection is actually and HTTPS (SSL) connection.

View Replies


ADVERTISEMENT

Using Http Post With Xml

I created a form for users to sign up for a newsletter our site sends out. The thing is we use a third party that keeps a db of our subscribers and sends the email for us. The signup resides on our site and when the user submits they get poasted to this third party site and then click through and get refreshed to our site again.

We want change that process and keep the user on our site so now thier values need to get posted to the 3rd party behind the scenes. Code:

View Replies View Related

Http Post

i'm tring to send post data using
set objSrvHTTP = Server.CreateObject ("WinHTTP.WinHTTPRequest.5.1")
....
objSrvHTTP.send xmlstring

but the transfer rate is very low(4 min per MB on LAN)..
some ideas?

(with MSXML2.ServerXMLHTTP.4.0 is equal)

View Replies View Related

Http Post, In ASP

i'm trying to find out how to post a file to a URL, using ASP, but I can't seem to track it down.

View Replies View Related

HTTP Redirect With POST

I need to redirect to another web page, but that redirect will include the
submission of form data. So, unlike ServerXMLHTTP which stays on the
originating web page, I need the script to redirect to the page that I'm
submitting the POST data to (without pressing a submit button).

Any suggestions?

View Replies View Related

HTTP Post / XMLHTTP

if i use the example code belpw ; which ip address will the post appear to come from. the ipaddress of the browser or the webserver?

<%
Response.Buffer = True
Dim objXMLHTTP, xml
Set xml = Server.CreateObject("Microsoft.XMLHTTP")

' Notice the two changes in the next two lines:
xml.Open "POST", "http://www.imdb.com/Find", False
xml.Send "select=All&for=The Usual Suspects"

Response.Write xml.responseText

Set xml = Nothing
%>

which ip address will the post appear to come from. the ipaddress of the browser or the webserver?

View Replies View Related

HTTP Post In Vbscript

A site I'm working on has a php form with an asp form processor redirecting to a php thankyou page.

I need a way to output some of the form fields entries in the thankyou page.

Here's my ASP and vbscript: Code:

View Replies View Related

HTTP Post - The Code...

i've got this code...

Dim oOriginalPO, oXMLHTTP, strFileName, strURL

strURL = "url that is required"
strFileName = sXML

Set oOriginalPO = CreateObject("MSXML2.DOMDocument")
Set oXMLHTTP = CreateObject("MSXML2.XMLHTTP")

oOriginalPO.async = False
oOriginalPO.load strFileName 'name of file containing cXML data

oXMLHTTP.open "POST", strURL, False 'strURL is our URL you post to
oXMLHTTP.send oOriginalPO

So on the assumption that the sXML variable has correct information inside it to send out, can anybody see why perhaps this code isn't working properly?

View Replies View Related

SQL Parameters From HTTP Post

How do you append parameters to SQL string?

descrip = Request.Form("Description")

strSql = strSql & " AND [SaLTInventory].[Description] LIKE "&descrip

I don't seem to have it quite right?

View Replies View Related

How To Simulate HTTP POST Using Headers?

This is the scenario: I am making a wizard composed of several steps, each
step being a form with the post method. The first steps may be completed
whether the user is logged on to the website or not. But from a certain step
on the user must be logged on to complete the wizard. What I do is post the
data gathered so far to the logon page; the logon page is essentially an ASP
page with an HTML logon form that posts to itself. Once the user logs on he
is taken again to the wizard, to the step where he left off.

Right now I am using the HTML form / approach on the
logon page: after the user is authenticated, the asp page builds a form with
the "saved" data, pointing to the next step of the wizard, and uses the
onLoad event of the body tag to submit the form. And this does what I
intended.

But I believe there must be a more elegant way to do this, and I suspect it
involves setting headers directly using Response.AddHeader but I don't know
how to do it. Am I right? If so, how to do it?

View Replies View Related

HTTP Post To A Remote Server

I have an asp page. There I enter some text. This text needs to go some other web site but as jsp page ( such as http://www.web.com/Link.jsp).

Now, I was told to submit my asp page as HTTP Post to their jsp page. This is completely a new thing for me to do. Code:

View Replies View Related

How To Send Http Post Request

Let's say if I want to send a http "Post" request to a url, and check the http status code later. How should I write the code? I have found example to use WinHttp to send "Get" request and check the http status code:

======
Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5")
objWinHttp.Open "GET", strURL
objWinHttp.Send
If objWinHttp.Status <> 200 Then
...
End If
======

How should I write the code if I need to use "POST" to send data in a form, and to check the http status code later?

View Replies View Related

Collect String From HTTP Form POST

I have a basic form that POSTs data to a web server. The web server then replys with a string response. It goes something like this:

<FORM METHOD=POST ACTION="https://www.mywebserver.com/trans.dll">
<INPUT TYPE=HIDDEN NAME="x_Field1" VALUE="1">
<INPUT TYPE=HIDDEN NAME="x_Field2" VALUE="True">
<INPUT TYPE=HIDDEN NAME="x_Login" VALUE="MyUser">
<INPUT TYPE=SUBMIT VALUE="Click here To Submit">
</FORM>

The response is just a comma separated values string like:
1,0,2,3,0,Transaction Success,Etc

Once I hit the submit button the server returns a string response. I do not want the user to ever see the response, but need the response string to create my own page. How do I retreive that string and use it??

View Replies View Related

Reliability Of HTTP Get Of ASP Page

I have an app that gets a file from a web server. An ASP page is passed authenitication data (username, password) and a filename. The file is read and then output by the ASP page so the only response is the file I am requesting. The file I want to receive is XML with the major portion of it being a Base64-encoded block.

I use the Indy component TidHTTP to get the file:

HTTPClient.Request.ContentType := 'text/html';
HTTPClient.Request.CacheControl := 'no-cache' ;
Response.Text := HTTPClient.Get (TIdURI.URLEncode (URL)) ;

Problem is that more often than not, the returned file contains errors. In a 200k file, 2 or 3 characters are often munged. Occasionally I manage to receive the file without errors. Code:

View Replies View Related

HTTP Page Size

Is there any limitation on a ASP (or http) page size (in bytes), i.e. what is max size(in bytes) a ASP page can hold? I seems to know that there was a limit of 64K, but that was long, long time ago, probably more than ten years.

View Replies View Related

Page Post

I have Page1.asp which is posted to Page2.asp. Page2.asp runs in hidden frame. When web server is running and Page2.asp is running I can pass suceess / fail / any error messages to Page1.asp using javascript.

Now if Web server is down then Pag1.asp progress bar is running continuously and have no idea whats going on whethere there is logic error or error due to web server down. How to handle this smartly and propogate an error to page1.asp

View Replies View Related

HTTP Error 404 When Calling Page.

I have 2 sites on my Windows Server 2003/ISA/IIS machine. One of the sites works fine and has 'default.htm' for the default document. The other site returns an 'HTTP error
404' and has a 'default.asp' for the default document. Aside from that they appear to be configured the same.

View Replies View Related

Creating A New Page After A Post...

I am looking to create some sort of function that on the click of a submit button, a new HTML page will be created. Is this a simple task or something that I should research?

View Replies View Related

Chunked Post To Page

I have problems communicating with ASP pages so I am trying to help the developer of
the page. The problem is with posting chunked data. According to HTTP 1.1 Content-Length header is missing so Request.TotalBytes is -1.

The only idea I have is that we should use Request.ReadBinary till end of the stream is reached?

Has anybody managed to get ASP working with chunked data properly?

View Replies View Related

POST Data To A New Page

I have a page with 4 submit buttons. How can I make 1 of these buttons spawn a new page AND use the data posted from the orginal page?

View Replies View Related

ASP Page Can't Post To IIS 5.0 Server

We are trying to get an .asp page to post to an access
database. the page is viewable, and the form boxes can be
filled in. Upon submission of the data a confirmation
page is then to show.

What happens is the data is inserted into the page, but
upon submission an HTTP 500 Internal server error appears.

if we uncheck show friendly http errors in IE there is
still no more info to go on.

View Replies View Related

How Do You Post Form Data To Another Page?

Here is the situation:

1. User fills in form and hits submit
2. Some processing is done with the posted data using ASP
3. The posted form variables now need to be submitted to another script which only receives POSTed data.

How do I send the posted data to another script? I can't run step 2 on the next script as its validation script and I'm going across two servers.

View Replies View Related

ASP Page Not Refreshing Recordset On Post

I have an VBScript/ASP page that lists bikes that are checked out. For each checked out bike, there is a button to check it back in to the system.

Problem is, that when a bike is checked in, it is properly removed from check out in the database but will still appear in the recordset when the checked out bikes are re-listed.

Recordsets should be destroyed after a page is rendered -- correct? I've tried multiple methods of forcing a refresh to no avail.

I included the following (and multiple incarnations of it) at the top of the ASP page just below the language declaration. Code:

View Replies View Related

Web Page Listener For POST Message Problem

I created listener for POST message from client as a simple web page and process that message in Page_Load method. If I use url for posting message to my listener with explicit web page name http://myserver/formhandler/listener.aspx it works without error.

But my clients will need to post message using url without mentioning page name like this http://myserver/formhandler. In IIS for formhandler virtual directory I set default document as listener.aspx. And now my issue starts: server responds every time with error 405 Method not allowed. I set properly mapping for aspx extension in configuration to allow POST method.

View Replies View Related

Retrieving Body Of A HTTP Message Being Posted To A Listening Asp Page

I have an ASP page that sits and listens for responses sent to it by a third party. The third party simply sends a plain text delimited response in the body of the http message.

Eg: Account=2,User=92663,Pass=OK,Action=5

What I can't figure out on my listening page, is how to capture the body of the message being posted to it, so that i can then manipulate the delimited string, and split it up into the variables for later use.

How do i get access to the body of the http page? I thought perhaps using WinHTTP, but it looks like it only works when your page goes looking for a web page, and not when a page is being submitted to it, like in this case.

View Replies View Related

HTTP Header Modifications Must Be Made Before Writing Page Content

am using pws on win 98 and when i try to excute any asp page i got the following error

Response object error 'ASP 0156 : 80004005' The HTTP headers are already written to the client
browser. Any HTTP header modifications must be made before writing page content.

View Replies View Related

GET Or POST Data Using Vender Asp Script, And Display On Our Page

Im trying to either POST or GET data using an asp action provided by world gift card, and display the data on our website. So the form is on our server, and the action is there server asp script on there server.

I want the data to come back to our server.. I want to use this data to display to our customers so they can check the balance of there gift cards etc... This is what i have so far.. Code:

View Replies View Related

How To Pass A Long Parameter String To A ASP Page Via Post Parameters

I have the following test.asp page which needs one parameter querystr
but my querystr is a very long string value. When I send a long value
the query string is getting truncated after some characters.

Can you please kindly share the code segment to workaround how to pass
such a long string value to a asp page. This is how I invoke the test
page:

http://localhost/?querystr=select ............ from xxxxx

'test.asp
<html>
<body>

<%

response.write("Hello World!")
w=request.querystring("querystr")

response.write "<td><p></td>" & w
%>

</body>
</html>

but part of my query string never gets passed to the asp page appears
asp as a limitation on max string length can you please provide me a
workaround how I can overcome and pass the right string to asp.

View Replies View Related

How To Post A Page Automatically When An Option Is Chosen From A Drop Down List

what I want to do is - the user is presented with a form with a drop down box at the top with two options - Yes or No, If No is selected then the form stays as is and the user can complete the other text boxes.

However, if the user selects yes I want the page to refresh with a different set of input boxes.

View Replies View Related

Post The Form Data And Open The Page As A Modal Window

Is it possible to post the form data and open the page as a modal window?
Because when I do the following, it will open page2.asp in a new window, but
I still able to manipulate page1.asp. I want to make page2.asp as modal
window.

<form action="http://server2/page2.asp" method="post" target="_blank">

Any ideas?

View Replies View Related

Error ASp .NET WEb Service : URL:'http://localhost/WebService1. HTTP/1.1 302 Found"

i'm using windows XP, IIS 5.1, Visual .NET 2003 and SQL Server 2000.

When I open New Project - Visual C# Projects - ASP .NET Web Service -

Location : http://localhost/WebService1

After that i click OK, then it returns error

"The web server reported the following error when

attempting to create or open the web project

located at the following

URL:'http://localhost/WebService1. HTTP/1.1 302 Found"

After that i try this : Code:

View Replies View Related

Re-submit A POST Immediately From A Previous POST

Is there a way to 'force' a submit on a form with out actually allowing the
user to press a button ? For example...

step1: A from is filled out by a user, then they click the submit button.

step2: The form is 'post'ed to an ASP page which writes the values to a
database. So far No problems. But..

step3: Now I want to 'post' these values again to another page without any
user interaction.

My ideas were:

1) I know you can get the form values from Request.Form("myVar"), so I
thought of making a 'dummy' form and setting the 'values' of the form
variables to these Request.Form("myVar") valiables, but I don't know how to
'submit' them to another page again.

2) Is there some type of 'submit' command in ASP?

View Replies View Related

Correct HTTP Response Status Code On "Access Denied" Page.

I have a password-protected area on my site. I'm not using any server
authentication methods: Instead I prompt the user for a username and
password using an HTML form and check these against a database of
registered users.

I was thinking that this page should be returning a HTTP status code of
"401 Unauthorized" instead of its current "200 OK". My reasoning being
that this would let search engines know what's going on when they
request a protected page and get redirected to the "Access Denied"
page.

I experimented with adding response.status = "401 Unauthorized" to the
"denied" page, but now it displays a (Windows/IE) username & password
prompt instead. The HTTP sniffer shows that the www-authenticate field
is set to "Basic".

My question: How can I indicate to the search engines that the page it
is requesting requires authentication, yet have it not display the
login/password dialog box?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved