Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old January 11th, 2003, 02:08 AM
pickleman78 pickleman78 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Dallas,TX,USA
Posts: 582 pickleman78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via AIM to pickleman78
Errors

Here is my problem, I have apache 1.3.2 on a remote server and on my home windows machine, this ia pretty generic thing though. When I pass information with a space in it to a script, I recieve the error Erroneuous characters after protocol string, I know this can be done because I have seen it, is there some configuration something etc that I can alter to keep this error from occuring? To force it to accept the string? I cannot format the request as a URL properly, and I think there is a way to do it, but I'm not sure how. The script goes something like myfile.php?blah=stuff stuff
I know that after the space it sees the last stuff as protocol so it throws an error, is there any way to keep it from throwing this error or keeping it from occuring?

Reply With Quote
  #2  
Old January 11th, 2003, 06:19 AM
bob0099 bob0099 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: manchester,n.h.,usa
Posts: 172 bob0099 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Errors

Try putting the string in quotes

Reply With Quote
  #3  
Old January 11th, 2003, 02:13 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
RE: Errors

Or change the space into %20

Reply With Quote
  #4  
Old January 11th, 2003, 08:34 PM
pickleman78 pickleman78 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Dallas,TX,USA
Posts: 582 pickleman78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via AIM to pickleman78
RE: Errors

I can't change the spaces, I cannot format the URL at all, it is takes as is. I think that maybe by using a custom error document, I may be able to get it right, but what error number does that return? Quotes don't work either.


Reply With Quote
  #5  
Old January 11th, 2003, 08:58 PM
bob0099 bob0099 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: manchester,n.h.,usa
Posts: 172 bob0099 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Errors

How about storing the string in a variable first and then passing the variable?

Reply With Quote
  #6  
Old January 12th, 2003, 03:33 AM
pickleman78 pickleman78 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Dallas,TX,USA
Posts: 582 pickleman78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via AIM to pickleman78
RE: Errors

Ok, lets see if I can make this clearer, I am working on a small script similar to wgat you would see at subprofile.com for AIM. It passes the users screen name to the file. The users screen name can contain spaces, and AIM does not properly encode URLs before pasing them on. So I get
myfile.php?name=my name
not
name=my%20name
or
name=my+name

I have no control over that variable until it hits the server, in which case I can make sure its valid and everything, But the problem is, that it sends an error header back to the AIM client, which gives an error to the user that just says error loading content. I have tried using a custom error document, but I am not 100% sure what the error code for that is. Also, when an error is seen by the server, does it also by default send the error header to the client? If thats the case, is there a way to stop it?

Reply With Quote
  #7  
Old January 12th, 2003, 03:55 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
RE: Errors

Here's a usenet post from a guy trying to do the same thing...and his solution..not sure if it works, but he says it does:

here

Reply With Quote
  #8  
Old January 14th, 2003, 04:17 AM
pickleman78 pickleman78 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Dallas,TX,USA
Posts: 582 pickleman78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via AIM to pickleman78
RE: Errors

Well that didn;t work at all. Is there a way to stop the error headers from going to the client?

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > Errors


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek