XMLHTTP Request Object
I have this XMLHTTP request object. Which post and returns a variable value in the form of a query string from the server.
How do i read the value of the query string and assign it to a variable i want?
e.g if the querystring returns a value of results.asp?status=200
I would like to be able to assign the status value to a variable
Or if possible, does anyone know of a better script than the one below ? Because at times i get the error PERMISSION DENIED Code:
View Replies
ADVERTISEMENT
I'm using XMLHTTP object to post a request from the client to the server without refreshing the client explorer.
my client code looks like this:
objXMLHTTP.open("POST", http://localhost/trySCTree/AIXH_BTree.aspx, false);
objXMLHTTP.setRequestHeader("Content-type", "text/xml");
objXMLHTTP.send("parm=123");
my server code looks like this:
<% string getParm = Request.Form["parm"]; %>
somehow I'm always getting a null at the getParm variable. why does the parameter is not sent right to the server ?
View Replies
View Related
Why does the error below occur whenever the statement Request.BinaryRead Request.TotalBytes) is executed for uploads larger than 100K? I thought the 100K limit applied only to Request.Form. This does not occur with smaller uploads. This is running on an IIS 6 server with full FP2002 extensions.
ERROR:
Request object error 'ASP 0104 : 80004005'
Operation not Allowed
View Replies
View Related
Can anyone point me to example code for using the xmlHTTP object for retrieving an SSL page.
View Replies
View Related
i have the code below to read pass info to my provider's server, which reads the info and sends back to me, I got the script from this forum at
http://www.sitepoint.com/forums/showthread.php?t=49339
how do i get to read the querystring status ie
asp?status=200
i tried using:
hello1 = request.querystring("status")
but get no results.
View Replies
View Related
Currently I am running IIS6 and MS2003 Server. I have a bit of code which sends a request to the server and returns an xml page through the XMLHTTP Request object, but every now and again the object locks on the send, so I don't get an error from the server until the page itself times out.
The only solution we have found so far is to reboot the server, which restores the object for a while but sooner or later it locks up again.
Please help, at this point I am looking at a rewrite without the XMLHTTP object to solve the problem, and Id really rather not have to do that.
View Replies
View Related
I've got a form handler that I'm useing to grade a test. The test contains some random questions pulled from a database. I'm wondering if there is a way with the request object, to get the name of the form element from the page with the form in addition to the information entered in the text box, or the value of the radio button clicked. I can get the value's from text boxes and the values of radio buttons selected, but I can't get the name of the form element. I've looked in the reference material I've got and Googled for an answer, but can't seem to find one.
View Replies
View Related
When you use the Post method in a form, it is stored in the Request Object. How long do those variables last?Example: User inputs some info in a textbox, presses a "Preview" submit button to preview their input before it is submitted. The form "Action" does some stuff with the user info, looks to see if they hit "Preview" or "Submit." Since they hit "Preview," it redirects them to another page to preview what the "Action" has done.
Does this third redirect page have access to the form info through the Request Object or has it disappeared by that point?
View Replies
View Related
if I have a form that contains a line like this :
<input type="hidden" name="id">
The value for "id" is assigned in the form.If I want to access the information from a ASP form using Request, i would use "Request.Form("id"). what is the difference between Request.Form("id") and Request("id")?
The Request("id") works but I am wondering where it gets the information. When you don't specify the collection (as in Request("id) instead of Request.form("id) ) does it mean that the request will try to get the information from the URL, the cookie and the form?
View Replies
View Related
i'm trying to display a name from a field value within a form using the following within an asp page called logpost.asp
<%
Dim strUname
strUname= Request.Form("TLFORM")
Response.Write strUname
%>
here are the form details
<form action="<%=TL_LOGIN_URL%>?ACTION=Login" method="post" name="TLFORM">
this isn't working though both files are in the same directory. anyone got any suggestions if poss or a work around?
View Replies
View Related
the internet explorer always give me some error
"
Object Required : Request
Code . 0"
"
on some ASP pages I try so look it up on the code, but I couldn't find anything wrong
FireFox and Opera could display the pages without any the error Does any knows what's wrong?
View Replies
View Related
I'm trying some ASP script on my Windows XP professional.
I have installed the IIS and it's running fine. All the ASP pages are
running good except when there's a request involved, a submit button or
anything that loads another page such as using information from a form, a
radio buttons, or checkboxes. When I click on submit I get "The page cannot
be found".
View Replies
View Related
Let's say I want to use the msxml object to call a web page from
within my script, and on the querystring or "in the header" of that
request I want to include a dictionary object, such that the called
.asp page can then request the object to it's script and use the
dictionary object.
Has anyone seen anything that describes marshaling an object into an
http request header?
View Replies
View Related
Can You Put A Variable In A Request.Form Object I'm looking to do something like this:
variable = Request.Form(RS("ID"))
View Replies
View Related
Is there a way to clear out the request.form collection, or the entire request object, for that matter?
I'm using server.transfer and this can be troublesome in cases where you need the request.form items to be reset.
View Replies
View Related
Now my request.form object which gets the values of the answers gets them in wrong order and puts them in the database in the wrong order
is there a way i can set my order for accessing request.form object.
i m using the loop
for each x in request.form
next
becoz i dont know the values of x as they come from the database and can be anything. i also tried
value1 = rs("name") where name is a value in database
request.form(value1) which does not work.
View Replies
View Related
In ASP, I’m using the following statement:
sTmp = " WHERE Sites.[Site Address] Like '" & Request("txtSiteAddress") & "'"
I’m constructing a SQL string getting the parameters from the URL that I built through a form.It works fine if it wasn’t for the jolly characters. If, for example, in my form I type %A% I can see it in the URL (I can see the % characters as well) but the ‘%’ character doesn’t get returned by the Request("txtSiteAddress").Does anybody know if there is a reason for this and a workaround?
View Replies
View Related
Request.Form and Request.BinaryRead cannot be called after each other as it causes errors.
I need the BinaryRead and I also need to access other form values, but I cannot call them after one another. What do I do?
View Replies
View Related
What is the difference between these two statements? They seem to do the
same thing...
response.write(request("variable"))
response.write(request.querystring("variable"))
View Replies
View Related
I need to get data from a url (which throws out XML) and then parse it using DOM or XSLT. I know, to get the data, I need to use XMLHTTP.
Can I get a sample code for it?
View Replies
View Related
I have the code below and in a random fashion it is responding extremely
slowly. On in 3-4 times it takes ages to do the job..
It is the line: xml_http.Send("") that gets stuck. I am on IIS 6 on Windows
Server 2003 Web Edition. Code:
View Replies
View Related
One of the limitations of ASP is the lack of a dynamic SSI, in which you can include files using variables. So far I know only of two methods to go around that.to use the File System Object.to use the XMLHTTP Object.Which one of the two is less of a burden for IIS ? Or are there other ways that are much better?
View Replies
View Related
I m getting information with XMLHTTP from 3 sites at the same time. but it is so slow. how can i make it faster. any information or any document about it. anyone who know about it. it is about alsa bandwith. how can i increase xml http performance.
View Replies
View Related
I got a great little example of how to use XMLhttp to query an external web site (I'm wanting to do my own localised search engine by extratcing the content and putting it into an Access DB), but it only appear to extract from the page that you point it to, ie the main default page is extracted when you put in something like www.hp.com.
I want the util to extract content from all of the found pages in the site I suppose like a spider. Has anybody done this or any ideas how you get it to go past more than the initial page?
View Replies
View Related
I need the ASP/xml page to send the Request to the share point portal server (Webdav) using XMLHTTP and i also need to parse the response xml into HTML.If any body knows about.
It might contais mainly three files one is Search page where user can type his requirements , second one contains sending XMLHTTP request to the Share Point Portal server and third one contains the Parse xml response into HTML format.
View Replies
View Related
I use MSXML2.XMLHTTP to receive some HHTP responces from
remote server, unfortunatedly, it uses cookie-based auth.,
so I am unable to pass it, due to inability to store
cookies. How can I retrieve cookies from the headers of
HTTP response, and how can I add them to my request at the
next step?
View Replies
View Related
Why do sites dragged in through XMLHTTP only download half or so of the images associated with the site?
View Replies
View Related
Up to this point, i've been able to extract the search results from a site. Form -> Results chain.
However, on a new project im on, im a little stuck, and not sure if it is at all possible. The next page im trying to get info from there's a chain of 3 pages. so Form -> Middle -> Results.
I've tried inputting my own form data, but i get the page info from the Middle link, and not the Results link. Any ideas how i can go on to the Results link?
At the moment i dont think it's possible, but i haven't been in this game for long.
View Replies
View Related
I'm using XMLHTTP to perform a simple screen scraping job.
When I try to have it "scrape" lines with embeded CSS declarations, it
renders them incorrectly, stripping the leading period. Consequently, my CSS
doesn't work.Here's how I'm calling it, but I don't think my implementation is the
problem.
Dim srvXmlHttp
Set srvXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
srvXmlHttp.open "GET", TearURL, false
srvXmlHttp.send()
If srvXmlHttp.status <> 200 Then
Response.Write "No Server Response"
Response.End
End If
Dim strRetval5
strRetval5 = srvXmlHttp.responseText
View Replies
View Related
I have a peculiar problem using the method
Server.CreateObject("MSXML2.ServerXMLHTTP") in order to get a connection
from one server to another.
On my personal host (IIS) the above method works perfect, and I can 'include' an HTTP stream from a remote URL into my own page. However, the method doesn't work on another webserver (IIS, too) although the MSXML2.ServerXMLHTPP method is installed (I checked it).
The error message I get there is:
msxml3.dll error '80072ee2' The operation timed out
This error does only appear if I try to get data from a remote URL, if I try to get data from http://localhost/foo, the method works - I believe the webserver is behind a proxy. Would this cause any problems? And if so, how can it be solved?
- Do you guys know of any other solution how to 'emulate' the php
include command in ASP without using the MSXML2.ServerXMLHTTP method?
View Replies
View Related
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?
<%
dim objXMLHTTP
set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.Open "Post", "http://smallbutsmart.basis.com.au", false
'objXMLHTTP.SetRequestHeader "Content-type", "text/html"
'objXMLHTTP.CreateUser "abc","123","Scriven","1","001","qms"
objXMLHTTP.Send
%>
View Replies
View Related
I've been searching everywhere online to find an alternative method besides
using Microsoft.XMLHTTP (as it freezes the server up alot!!) but with no luck
at all.
I am using server side ASP, and some said to use Microsoft.ServerXMLHTTP
instead. However I have tried that as well and it still freezes up the whole
thing (i.e. the site just keeps loading forever).
I tried to do a "on error resume next" clause to catch the error but still
doesn't stop the page being freezing up.. :(
I saw someone here said don't use XMLHTTP in ASP as it is not thread safe
(is that why it is freezing up??), and suggest to use
MSXML2.ServerXMLHTTP.3.0.
so do anyone know if MSXML2.ServerXMLHTTP.3.0 will help? i.e. not freezing
up the page?
View Replies
View Related
when we get info from an url with xmlhtttp or xml server http how it
behaves. how bandwith it uses or how it adjust the bandwith which it use...
how can it use all the bandwith.. any promramme or any windows adjusment
...are there possible solutions.. for example how the flash get use all the
bandwith when we separate from the whole part a file to lots of part
View Replies
View Related