473,383 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Request Verb question

Is there any method to add a http header when we navigate to the URL.
Also, how to change the request method from "Get" to "Post"?

Jun 19 '07 #1
5 1242
go***********@gmail.com said the following on 6/19/2007 2:27 PM:
Is there any method to add a http header when we navigate to the URL.
Not from the client.
Also, how to change the request method from "Get" to "Post"?
Before or after the request is made? If before, you can simply change
the method attribute of the form:

formRef.method="get"
formRef.method="post"
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 19 '07 #2
Rik
On Tue, 19 Jun 2007 23:07:41 +0200, Randy Webb <Hi************@aol.com>
wrote:
go***********@gmail.com said the following on 6/19/2007 2:27 PM:
>Is there any method to add a http header when we navigate to the URL.

Not from the client.
Unless one uses an XMLHTTPRequest, custom headers possible, just not very
usefull to load an entire new page.
--
Rik Wasmus
Jun 19 '07 #3
Rik said the following on 6/19/2007 5:37 PM:
On Tue, 19 Jun 2007 23:07:41 +0200, Randy Webb <Hi************@aol.com>
wrote:
>go***********@gmail.com said the following on 6/19/2007 2:27 PM:
>>Is there any method to add a http header when we navigate to the URL.

Not from the client.

Unless one uses an XMLHTTPRequest, custom headers possible, just not
very usefull to load an entire new page.
Which doesn't even come close to being useful to what the OP asked -
"when we _navigate_ to the URL".

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 19 '07 #4
Rik
On Tue, 19 Jun 2007 23:45:42 +0200, Randy Webb <Hi************@aol.com>
wrote:
Rik said the following on 6/19/2007 5:37 PM:
>On Tue, 19 Jun 2007 23:07:41 +0200, Randy Webb <Hi************@aol.com>
wrote:
>>go***********@gmail.com said the following on 6/19/2007 2:27 PM:
Is there any method to add a http header when we navigate to the URL.

Not from the client.
Unless one uses an XMLHTTPRequest, custom headers possible, just not
very usefull to load an entire new page.

Which doesn't even come close to being useful to what the OP asked -
"when we _navigate_ to the URL".
Unless he's just got a hazy way of saying: "if someone clicks somewhere in
my navigation menu".

--
Rik Wasmus
Jun 19 '07 #5
On Jun 19, 11:07 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
gouqizi.lv...@gmail.com said the following on 6/19/2007 2:27 PM:
Is there any method to add a http header when we navigate to the URL.

Not from the client.
Also, how to change the request method from "Get" to "Post"?

Before or after the request is made? If before, you can simply change
the method attribute of the form:

formRef.method="get"
formRef.method="post"

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/
I don't think gouqizi meant form submitting, but navigating to a page.
In that case - "not from the client" again.

Jun 19 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Aaron Prohaska | last post by:
I have just run into a problem where I have a page that posts back to itself to execute code, except when the page does the post back it somehow executes code that is in our home page for the site....
1
by: Kenneth Myhra | last post by:
Hi all, while trying to convert a C++ ISAPI-filter, used to authorize file requests, to .NET we have gotten into a problem with the 'PUT' verb. First I will explain how we do this. We are...
0
by: Maciek | last post by:
Hi When I set Session state mode to StateServer (IIS 6.0; windows2003; .NET 2.0) in my application, I have recived this message:...
2
by: Seth | last post by:
Ok, here is my setup. I have a fully functioning HTTP Handler implemented. The handler is supposed to handle every single request that comes in to a particular virtual directory. Thus, in IIS, I...
2
by: Dave | last post by:
running server 2003, .net 1.1, developing with vs 2003. i have a simple one function webservice that takes 4 string inputs. calling it with http post from simple form made by cutting out the demo...
2
by: AnalogKid17 | last post by:
Keywords: ASP.NET app with VS2005 running on Win2003 with IIS6, and SQL2000 on a WinXP Box I've betting the following for days... it's driving me insane: Server Error in '/' Application. ...
0
by: Gaetan | last post by:
Anyone knows why IIS 6.0 requires that the user account required write access to the web application folder when a custom verb is used? I configured my web application and added COMP to the list...
2
by: jb | last post by:
Hi there, After installing and using MSAJAX 1.0 in one of my servers and websites, sometimes, I get the next error surfing the site: Bad Request (Invalid Verb) Somebody knows what does it...
0
by: tohnsm | last post by:
Hi. In a program I am doing, I am trying to POST to a website. However, prior to that I have also use GET request. That is: request = CType(WebRequest.Create("...."), HttpWebRequest) ...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.