How Could I Use POST Method To Transfer Parameters With XMLHTTP?

How could I use POST method to transfer parameters with XMLHTTP?

With GET all works correct, but with POST I get a problem.

client.asp with GET - all works .....

View Replies


ADVERTISEMENT

Transfer Parameters

i just realized that II5 is not with me i am running PWS on win98.so can i use response.redirect so that i can transfer parameters like a variable or a value?

View Replies View Related

XMLHTTP Send Method

I cant use Microsoft.XMLHTTP object's Send method for posting a form. Can anyone help?

The form field is
<input type="hidden" name='content1' value='Add User'>

But when i post
objXMLHTTP.Send "content1=Add User"
an error occurs.

Neither of these works:
objXMLHTTP.Send "content1='Add User'"
objXMLHTTP.Send "content1=""Add User"""

View Replies View Related

Server.Transfer Method...

Got a quick query in relation to the Server.Transfer method available in IIS
5+/ASP. I've got an issue where I want to take a portion of an online app and
extract this out into a web site on its own, so I will end up having two web
sites. This planned to aid problems we've been having with performance, as if
the portion (which is an app in its own right) has problems we then have to
restart the whole site and so bring everything down just because of the
portion of the app which we're having issues with. Taking the portion of the
site will allow us to run it in isolated mode in ISS and so just restrat that
if needed, while not affecting the rest of IIS.

Anyways, I'm in the process of writing a jump page to facilitate the process
of moving from the first site to the new second site, but as we need to reuse
session info created in site 1 I need a way of passing this over to the
second site.

I've been aware of the Server.Transfer but never really used it so I'm not
too sure how I can actually use this. I was planning to write an ASP page
that takes the required info out of session is site 1, calling
Server.Transfere to send it over to the second site. I don't want to do a
Response.Redirect, not wanting the client to do this and not allowing it to
know what info I'm using in the session.

And so, I thought the Server.Transfer would facilitate this, but after
reading some of the documentation on MSDN I'm not sure I can, ie: redirect to
another ASP page in this way and tack on a QueryString holding all the
session info I need, as MSDN says that I'll get an 'ASP 0173 error, "Invalid
Path Character"' error if I have a question-mark '?' in the path, or any
other of a list of invalid chars. But then I need this '?' char to build my
QString ie: XXX.asp?sas=123&jdy=0689...

So what I'm after is some clarification that I can use Server.Transfere in
this way or not, ie to redirect to an ASP page and tack on a QueryString, of
if it just allows for an ASP page without s QString. So then if I want to do
this I might need to use the Response.Redirect method, or some other way!!

MSDN also says: "When you use the Transfer method, the state information for
all the built-in objects are included in the transfer. This means that any
variables or objects that have been assigned a value in session or
application scope are maintained"

....So will I have the session info from site 1 available in site 2 after the
redirect or does this only apply for a Server.Transfer within the same web
(which I think is what it means!).

I don't have an environment up that I can test this on yet so I'm kinda
feeling may wat in the dark here, hence my lengthly post.

View Replies View Related

Access A Method In Another Server Using Xmlhttp

Shown below is ASP Code sample that tries to access a method,CreateUser in the server called,

"http://smallbutsmart.basis.com.au" using the protocol,XMLHTTP. Can you explain to me why this

Code does not work and showing the correct Code Sample?

View Replies View Related

Transfer Method Without Returning Asp Page

---------------------------------------------
The Execute method allows you to call another ASP page from inside an ASP page. When the called ASP page completes its tasks, you are then returned to the calling ASP page. The overall effect is very similar to a function or subroutine call. Any text or output from the called ASP page will be displayed on the calling ASP page. The Execute method is a more useful alternative to using server-side includes.

In contrast, the Transfer method allows you to transfer from one ASP page to another without returning to the calling ASP page.

There is one mandatory argument.
---------------------------------------------

Fair enough does what I need it to. However, I've run into a glitch. I understand the point about it being like calling a sub which means anything set within the executed page will be considered local and so anything set within it won't work in the calling page. What I don't understand is why the executed page can't read objects which have been set in the calling page before the execute???

View Replies View Related

Null Parameters Passed From XMLHTTP In Javascript To C# Webservice With SOAP

I have encountered some strange behaviour when using the XMLHTTP Request object in Javascript to return xml from a C# Webservice Method. I create a SOAP envelope and send it off to the Webservice, which I have debug points in, which when hit I can see that all the parameters are coming thru as null....

View Replies View Related

Lost Data If Using Server.Transfer Method Only In IE, Not In Firef

Our asp programs seem to have different behaviors when users use IE and firefox. One of most annoying things is the data disappearing problem in IE but not in firefox.(Note: Sometimes a search program can run much faster in Firefox than in IE, don't know why)
For example, I have an internal user interface which they can do different product data
entry, the program will use Server.Transfer to different asp program for data entry.

Page1---UserInterface.asp
Select Case Request("Product")
Case "Sel"
Server.transfer("/Virtualdir1/test1.asp ")

Server.Transfer("/Virtualdir2/Test2.asp")

Case "Bear"
Server.Transfer("/Virtualdir3/test3.asp")

Case "IMED"
Server.Transfer("test4.asp")

Case "AC"
Server.Transfer("/Virtualdir4/test5.asp")

Case Else

End Select

When user finished data entry on test1.asp(second page, the web address will still show UserInterface.asp page as you know), click continue, on the third page if they found something typed wrong, if they click back button in the broswer, all data on the second page is gone. This only occurrs in IE, Firefox is fine.

It's very annoying, how can I fix it, if not, is there any other way?

View Replies View Related

XMLHttp Post

I already know I can use the XMLHttp object to login to a page on a remote site, but can I then use it to post data to a page after the login page?

I would have thought that wouldn't work, as the XMLHttp object runs on the server, and I guess wouldn't maintain session state because of this. Is this something anyone's come across?

View Replies View Related

Passing Parameters To Or Invoking A Method Of An Activex Control In Asp

I wrote a simple client/server chat program and the client runs as an
activex control within an asp page. I have the users logging into
the page using widows authentication and I'm using
Request.ServerVariables("AUTH_USER") to get the users name. I'd like
to pass this name to the activex chat client thru the page but I'm
having some difficulty. I tried passing it as a parameter to the
"Tag" property within the <OBJECT> element like this:

<%
username=Request.ServerVariables("AUTH_USER")

username=right(username,len(username)-instr(1,username,""))
' remove the domain or machine name from the username

Response.Write "<PARAM NAME=" & chr(34) & "Tag" & chr(34) & " VALUE="
& chr(34) & username & chr(34) & ">"
%>

When I do this the ActiveX control doesn't appear on the page. Is
there a better way to do this? I also tried creating a public sub in
the activex control and calling it as a method from within the page
but I can't seem to get the syntax right. I keep getting "Object
Required" errors.

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

XMLHTTP POST DATA

I have use an affiliate link on my site, and I did not like it because it
did not have my sites banners on it, so I asked the permission of the other
site to change the display and they aggreed..

The affiliate site has 4 pages of forms linking to each other so it goes
something like
form.asp > results.asp > results_details.asp > confirm_details.asp >>>>>>
proceed to payment..

I wanted to grab the each page page using the XMLHTTP object and then the
post of the form to a local pages on my site.. The local pages would grab
the request.form string and then using code something like below..

on my page quote123.asp, I have <%=request.form%> and I never see the string
"select=All" - why is this... Code:

View Replies View Related

Remost POST Using XMLHTTP

I am trying to post some data to a form using the XMLHTTP object, and have run into a problem trying to find the proper
location of the receiving page.

The form points to a directory, like so:

<form action="/servlet/Login" target="_top" method="POST" enctype="x-www-form-encoded" onSubmit='return goodform()'>

but the XMLHTTP object requires a specific file reference.

Does anyone have any ideas on how to find the specific file that receives the form submission?

View Replies View Related

Is There Another Way To POST Apart From Response.redirect And XMLHTTP ?

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

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

POST Method

Now this is a weird one. I'm having a problem with a system in development. When I post data from a form in IE 5.01 it works fine, but in IE 5.5 it refuses to post the data to the server and in IE 6 it's scatty -- works sometimes but not others. Anyone seen this before?
Edit:
By the way -- this is normal VBS/ASP running on IIS 5 on an NT server

View Replies View Related

Post Method

I have a form that ignores my form validation code. My code works if I use the post method of <%=Request.ServerVariables("SCRIPT_NAME")%>.

But, If I post the form to another .asp page, which I prefer, the code doesn't work. Do anyone have any suggestions? Here's my code.

I have a form that ignores my form validation code. My code works if I use the post method of <%=Request.ServerVariables("SCRIPT_NAME")%>. But, If I post the form to another .asp page, which I prefer, the code doesn't work. Do anyone have any suggestions? Code:

View Replies View Related

ASP POST Method Bug

I have a demo.asp page, that can't pass hidden value "mr progrramer" to
itself using POST method. Only "mr" is passed.

I created a second asp file demo1.asp and passed "mr programmer" and whole
string (include space b/w mr and programmer was passed successfully).

The code for demo.asp is:

<%
name = request.Form("name")
response.Write "hello " & request.Form("name")

' if name is empty then store some string with space in it
' problem is the word before space 'mr' is passed, but 'programer' is not
passed
if len(name)=0 then
name = "mr programmer"
end if
%>

Code:

View Replies View Related

POST Method

I have a .asp page that uses the post method and it works fine on my computer using iis. But when i put it on the web server (it has windows NT4) it wont work.

I've read that you have to do something to allow the post method on the server.

i know nothing about windows NT4 but can get access to the server. can someone please let me know what i have to do to get this to work?

Just to let you know the post method is for ssending a login and pass to another page that search a database for the record. If there is another way to do this that does not show the variables in the url please let me know. i am also willing to make it so that everything is on the same page so i dont have to pass anything.

View Replies View Related

Post Method

Is there a limit to how many variables you can pass on using post method?

View Replies View Related

GET Or POST Method

when we should use GET method, when we should use POST method? GET method only sends limited amount of data, and it will show the data as part of URL. POST method won't show the data as part of URL, and can send any amount of data.

View Replies View Related

Post Method

I hv an asp page that allows the users to enter two dates, when they click a button i have another asp page that is opens word and shows the results in a table.

in order to get the criteria i think i need to use the post method for the page that opense word. however i ahve done a search and can not see anything that properly explains this method.

View Replies View Related

POST Method

I'm having trouble reading data that i send to the server using ajax. The call am making in the client-side javascript is:

fullProject.open("POST", url, false);
fullProject.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
fullProject.send('var1=' + projectData);

and I want to know how to grab that data using asp. The call that I've
been manipulating is

<%
response.write "data: " & request("var1")
%>

That hasn't been working, and all I've been receiving back is the string "data: ".

View Replies View Related

Directly Pass Parameters To Post

In order to test some pages of mine, is possible to directly hard-code a request passing some parameters in a post method to an asp page?

View Replies View Related

Using Redirect With Post Method

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

Encenctype And Post Method

I'm trying to sent information from a form to the server using the post method. The problem I'm having is that I have a file form field and it reqiures enctype="multipart/form-data". With this enctype, the data from the text fields doesn't get passed to the server. Is there a way around this?

View Replies View Related

Get The Select Statement Without Hex Value Using Post Method

When I use the following to post my value, I got SQL like this:

SELECT+A%2ECMPL%5FFIELD%5FID%2C+A%2ECMPL%5FFACILIT Y%.

How to get the SELECT without those hex value.

<FORM NAME='formname' METHOD=POST
ACTION='ExcelExport.asp?noIncludes=yes'>
<INPUT TYPE='Hidden' NAME='strSQL'
VALUE="<%=replace(server.urlencode(strsql),"'","`")%>">
<tr><td BGCOLOR=E4E4E4 ID='bodytext' COLSPAN='8' align='center'><input
TYPE=SUBMIT value='export'></td></tr>
</form>

View Replies View Related

Send A Variable Via Post Method

sending a variable in this way: temp.asp?num= <% = Var %> creates an error , although i can see in the url that the value is added (e.g temp.asp?num=3) is it because the method is post? what should i do so the variable will come throgh with no error!?

View Replies View Related

Post Or Get Method To Link To Detailed Information

we have been able to list information about people in a 5 column table coming from the database. Code:

View Replies View Related

Send Post Method Without Need To Click Submit

is it possible to send info to a page with the post method automaticaly ?
whithout the user having to click the button ?

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

Sending Form Data (like Post Method) To A Location Offsite

I'm trying to "post" a form in asp to a script off the main site.

I suppose I could do a response.redirect to the script, but am wondering if there is a more direct way to do it. Something like the XMLHttp obj in js.

View Replies View Related

Method="POST" Does NOT Work With Enctype="multipart/form-data"

My form has mixed fields in it, one of them is a file field for picture upload when i submit my form via method="GET" i can retrieve my form data with Request.QueryString() method but as then I loose my file, but as soon as I switch to method="POST" and use Request.Form() method i get nothing unless I remove enctype="MULTIPART/FORM-DATA" at which point I loose mi file also... What is causing this? is there a different enctype i need to be using?

View Replies View Related







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