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
ADVERTISEMENT
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
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
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
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
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
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
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
View Related
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
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
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
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
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
I have no idea if this is actually possible in plain asp but any help might
be welcome :
After a user has downloaded some content/file from my webserver (http_status
=200) I would like to redirect him to a file -lets say- "ThankYou.htm"
So basically sth like this
If Response.Status ="200 OK" then
Response.Redirect "ThankYou.htm"
Else
Response.Redirect "GetLost.htm"
End If
The question is : how would i implement this ONLY for the document to be downloaded ? The document to be downloaded is part of a collection from a DB query - so it is know to me as sFileName = rsPDF_ID("PDF_File")
View Replies
View Related
I need to implement an application that receives http calls from a remote
client, do something with it and returns some feedback. I want to use IIS
(version 6) as my front end http server (with https and ssl services) which
will facilitate all the requirements of a http server and then foreword the
incoming call to my application and will return the process result to the
client at the end.
Does IIS support this? And if yes - what are the requirement from my application to use it (built in .net if anyone interested)?
View Replies
View Related
I am using the following code in my default.asp page to redirect the page
from HTTP to HTTPS
<%
if Request.ServerVariables("HTTPS") = "off" Then
Response.Redirect("https://" & Request.ServerVariables("HTTP_HOST") &
Request.ServerVariables("URL"))
End if
%>
I got the code off of a website and found that many web sites had similar
code for doing the same thing. The problem I am having is that the code
will not redirect to the HTTPS and will keep reloading the page. Is there a
setup issue with IIS that I might be missing?
View Replies
View Related
I used a Response.Redirect "page.asp" as the last command in ASP code that
processes a submitted form from an Adobe PDF form (using HTML format). For
some reason, if there is any linked file (image, stylesheet, javascript) in
the target "page.asp" IE hangs until you press Escape. With Refresh, the
page loads completely.
I checked the web log and the entry for "page.asp" is 200 (OK) but all the
files I mentioned above all show 400. The description for this status code
is pretty generic and not much help (a syntax error in the request and the
server doesn't understand it
I can't control the syntax of the request so how can this be fixed? (and how
could the submit from the PDF form have anything to do with this since other
HTML forms directed to an ASP page with images etc. works fine.
View Replies
View Related
I'm doing a quiz in ASP, where info is passed from "quiz.asp" to "validate.asp" which checks the answers from a database and redirects back to the quiz page to show the wrong answers.
All that is working fine, but the problem is that I also need to redirect some other information related to the user, and I don't want to use GET and the querystring to show that.
Sessions were used in previous pages but were killed and replaced by variables before the user comes in the quiz page because I don't want the pages to be time-restricted (if the sessions expire).
The validate page uses response.redirect to move to the quiz page. So I can't use a form there.
Is there any way I could hide the information passed using POST, and if not what is a safe way to get around this.
View Replies
View Related
how can i (if at all possible) use post with response method? before i always did something like this to pass variables to the nest page:
Response.Redirect "main.asp?per=" & per
this obviously creates a querystring and that i am trying to avoid... so, if anyone knows how to do this please pass it on.
View Replies
View Related
I am able to get the value for "request.ServerVariables("http_referer")". However, I try to use this value in a "response.redirect" and the value disappears. Why is this happening. Example:
-------------------------------------------------------------------------
If Not Session("whatEver") = True Then
Dim httpVar, EncodeHttpVar
httpVar = Request.ServerVariables("HTTP_REFERER")
EncodeHttpVar = Server.URLEncode(httpVar)
Response.Redirect "https://www.blah-blah/extranet/index.html?referer=" & EncodeHttpVar
End If
-------------------------------------------------------------------------
What am I doing wrong.
View Replies
View Related
Is there another way to post data to my provider's server apart from the response.redirect and XMLHTTP?
I have tried both, problem with response.redirect is taht the user coudl easily tell who my provider is, and XMLHTTP I cant get to read from the other server the request.querystring status.
View Replies
View Related
A coworker is creating a form. The user fills in some numerical data. We would like to present them with a Calculate button that they can use to submit their numbers and be presented with the same information but also with the totals at the bottom. BTW, we cannot use JavaScript so it must all be done using server-side ASP.
That part is fine but we also want to provide them with a Submit button in addition to the calculate button. Now, I realize that if both buttons are contained within the same <form> tag, there can be only one action URL.
We toyed with the idea that if name=calculate, display the original form with the fields filled in and the calculations done and if name=submit, redirect to the thank you page but given that the method is post, then the redirect would not transfer the post data. If the method was get, then the redirect could include the query string data in the URL but that is not the case.
View Replies
View Related
I need some help/pointers here. I maintain an ASP/MSSQL e-commerce site.
I need to force the use of HTTPS for private/payment data and force back HTTP on other pages. Some googling taught me the use of checking Request.ServerVariables("HTTPS"). Though GET data/QueryStrings are passed all my POST data is lost because of the REdirect. Code:
View Replies
View Related
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
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
I am trying to use the following in an ASP page to redirect a user to a
non-anonymous FTP site:
response.redirect("ftp://myusername:mypassword@ftp.mysite.com")
but I keep getting a "permission denied" error. If I just put the same
address string in IE6's Address box and go to it, IE opens myusername's FTP
home page just fine, so I know the FTP site is working as expected. Also,
if I put in an anonymous ftp site, without the username and password (e.g.
"ftp://ftp.microsoft.com"), the redirect works fine, too.
I don't want the user to be prompted by IE for the username and password at
the FTP site, so I am providing them from within the web site.
What can be preventing the response.redirect from handling non-anonymous FTP
access? Is there a better way to do this?
View Replies
View Related
i have a series of .asp pages that i am dividing into model, view, control logic. my view collects a whole bunch of data and posts it to the controller. im wondering if there is a way to somehow "re-post" this same data to my model page.
in short, is .asp capable of taking data posted to a page and re-post that same data to another page?
View Replies
View Related
in ie 5 i m writing this below statement
http://localhost/Mail/email.html
email.html page contains 3 field box username , password and name .it calls the form2email.asp page
the code is that
<FORM name="mailform" METHOD=POST ACTION="form2email.asp">
but when it calls that page ie5 shows error
HTTP 405 - Resource not allowed
Internet Explorer
what is the problem
View Replies
View Related
I'm using XML HTTP in an ASP to import HTML content for clients from
their existing web pages. But for some reason, the tabs are now ?'s
What can I do to handle this?
View Replies
View Related
If someone puts a link into my form and I display it it will show:
http://http://www.abc.com as I put an additional http:// in front. So what I want is to detect is user has typed in http://, replace this and then input into DB or display.
I can use the replace function, but how would I check if first 7 characters are http:/
View Replies
View Related
I uninstall IIS and install it back again, will it solve the "HTTP 403.9 - Access Forbidden: Too many users are connected Internet Information Services" problem? I am running on Windows XP and using IIS 5.1 . I got this problem when I created a search page in Frontpage but I have deleted it when I found out I have this problem. I have disable HTTP Keep Alives in the IIS properties but I still cant resolve the problem.
View Replies
View Related
When i try to post message or try to open a new account server gives this error :
How can solve this problem
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.
/Start/Forum/register_new_user.asp, line 193
View Replies
View Related
I am getting the following error when trying to run an SQL insert in my ASP page and I cannot find anything in TechNet that references this error.
Below are IIS messages:
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80040E14)
Issue selected is no longer valid. Please select another issue.
/ActivityTrak/maintain/activityedit.asp, line 542
View Replies
View Related