473,563 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

./index.php?data & ./?mydata

Atli
5,058 Recognized Expert Expert
Hi.

I've been using Apache untill very recently and Im used to pass GET data without pointing to a filename... wich would make the url go something like this.

http://localhost/mypage/?mydata=somedat a

this works fine in apache but the IIS server doesn't seam to realize Im passing this to the index file and gives me a 405 error.

To get this to work I would have to do something like this.

http://localhost/mypage/index.php?mydat a=somedata


Anybody know how I can fix this?
Jan 24 '07 #1
2 2237
radcaesar
759 Recognized Expert Contributor
In IIS, you have to specify the index.php

In Internet Information Services

Goto MyProject --> Properties --> Documents tab

Add that index.php

now access it like this

http://localhost/MyProject

:)
Jan 24 '07 #2
Atli
5,058 Recognized Expert Expert
Hi

Thanks for the answer.
Thats not the problem here. I already figured that one out :P

After testing this a bit more I found that this only happens when submit a form using POST, but also specify GET data.

This would cause the 405 error:
Expand|Select|Wrap|Line Numbers
  1. <form action="?data=somedata" method="post">
The 405 error is "Recource not allowed" so Im guessing IIS can not pass both GET and POST at the same time? Wich would be very very stupid.

But as far as I can see passing either POST or GET seperetly works fine.
Jan 30 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2572
by: dougjrs | last post by:
I am working on a program that accepts data from a web form like this: Parm Value Doug Doug Doug_age 40 Doug_phone 111-222-3333 Kelly Kelly Kelly_age 42 Kelly_phone 222-333-4444
8
2135
by: Oliver Gerlich | last post by:
Hello, I want to transfer messages between a client and a server (over TCP sockets). A message consists of a message type (like a message "subject" :), the size of the attached data, and the data itself. The data part should then be able to contain some information whose layout depends on the message type... So now I thought I could define...
9
5290
by: Tyler | last post by:
I am attempting to extend a legacy VB6 application by making it use a .NET component written in C# exposed through COM interop. Everything appeared to be going well (VB application creates the .NET component instead of the legacy VB6 component and invokes some methods successfully) until I hit a snag. For one method that is being invoked...
4
1824
by: William | last post by:
After much frustration I was able to update my data store via code only. Using the data adapter was the only way I was able to set up all the objects written in my code. Basically, I cheated by creating an adapter and then copy, paste, modify it's code to suite my needs. This was the end result: Private sub updateTable( ) Dim myData As...
1
1418
by: samseed | last post by:
Hi, I have a delimited string that I would like to load into a data object. Here is what I have so far: //single string of data; each record is delimited by "%" //and each value within each record is delimited by ";" var myString = "foo1;001;bar1%foo2;002;bar2%foo3;003;bar3%"; //split each record into an array var myRecords =...
3
6362
by: Mike - EMAIL IGNORED | last post by:
MyClass { //I have a static member method: void static myMethod(); //and a static data member: static MyType myData; }; //In the .cpp file: void MyClass::myMethod()
3
1370
by: DMcN | last post by:
Hi, I've set up a form in flash which will send data to a PHP file on my web space, which in return will return the data from the textfields to my e-mail address. I know PHP is enabled in enabled on my web server because I tested it and it's OK. Please can anyone check my PHP script below to see if I am missing something that would cause my...
5
7596
by: countnazgul | last post by:
Hello, I've got very odd problem. I use windows application to store files in data base (MySql) and then to extract this files from data base and save it on hdd. But when i save them back to hdd tihs files are 1Kb less from original file. When i insert pictures this 1kb obviously is not imported and the pictures is shown. But other files when...
22
3210
by: sivadhanekula | last post by:
Hello Everyone A quick and direct question: I need a C/C++ program to extract the data from the database and the output should be in CSV "Comma Separated Value" format. Briefly: I will be given a database and my work is to extract a particular data from that whole database and should get a output in CSV format. The database given to me has 24...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.