|
Richard A. Abbott wrote: What is the problem in using existing web servers such as Microsoft's IIS or Apache
I want to put a small web (http) server in a network driver so it can interpret html requests and resond with relevant data. THats why its got to be small, and in C.
Morality is indistinguishable from social proscription
|
|
|
|
|
|
You helped a lot with the link to sourceforge, it helped me refine my problem down to just needing an http server, rather than a full web server so thanks.
Morality is indistinguishable from social proscription
|
|
|
|
|
I'm sure I'm not the only one wondering why you'd implement a web server within a network driver. I can imagine you just want a really small web server--but then it doesn't have to be part of a driver. Or I can imagine you want a driver whose configuration utility is http-based--but then the utility doesn't have to be part of the driver either.
So I wonder if you could explain a little more what you're trying to do... or why. I think the best answer depends a lot on whether your environment supports things like stdin/stdout, sockets, and the like. And of course what operating system you're working with.
(If your environment lets you use inetd, writing a web server gets a lot easier! You simply read a request on stdin and push the response onto stdout.)
|
|
|
|
|
|
I have a small problem with a hardware supplier who is designing remote units which will report back to a web service on one of our servers. I have set up a simple test web service, that accepts a string, and successfully consumed it with a small c# app externally. My supplier is having difficulty uploading data to the web service, and says that if I can successfully use hyperterminal to access the web service, his hardware should work too.
Well, not being an expert in web services (obviously) I thought "Easy! I'll just POST a version of the SOAP message that the .asmx header provides (supplying a string and content length). However, all I get back is <h1>Bad Request</h1>, or <h1>Bad Request (Invalid Verb)</h1>.
Can anyone point me in the direction of simple examples of how I should be doing this? I have assumed I'm doing the POST wrong somehow, but I guess it could be the IIS settings?
|
|
|
|
|
Are you including appropriate HTTP headers?
|
|
|
|
|
Sorry - should have given an example of code...
POST /TestWebService/TestService.asmx HTTP/1.1
Host: www.mysite.com:80
Content-Type: text/xml; charset=utf-8
Content-Length: 115
SOAPAction: "http://www.mysite.com/TestMethod"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><TestMethod xmlns="http://www.mysite.com/"><DataBurst>Testing via hyperterminal</DataBurst></TestMethod></soap:Body></soap:Envelope>
|
|
|
|
|
I'm suspicious of your Content-Length. I believe SOAP won't see anything past the 115th character of your request, which is a lot less than all of it.
|
|
|
|
|
I want to find whether user selected any checkbox or not. these CheckBoxes are in Repeater.
|
|
|
|
|
Set the name of the checkbox and then you can use a dom method to select all checkboxes by name.
I believe the js method is document.getElementsByName
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego.
|
|
|
|
|
Hi.
In my .Net app.(ASP.NET with VB) i connect to a photo camera using the WIA Service. This works fine.
I enabled the WIA service and I dedicated access to the Network Service group to the component.
I can take a picture, but when i try to fetch/get the picture, I get the message : "Value does not fall within the expected range". When I try Windows 2003 Server's own Scanner and camera wizard, I get the message: "The parameter is incorrect".
Any suggestion to my problem?
Wandera
|
|
|
|
|
Hi
I need to implement drag and drop across frames and I tried using the latest Drag And Drop event handlers (in Firefox 3):
ondrag, ondragstart, ondragenter, ondragover etc. but nothing works.
My code is simple one:
<div id="Top" ondragstart="alert('Drag Started');">
<img src="images/small_0.jpg" />
</div>
This code should give an alert when one tries to drag the image. But absolutely nothing happens!
The example given on http://developer.mozilla.org/en/Drag_and_drop_events also doesn't seem to work. (The image never gets dragged anywhere!)
On this page: http://developer.mozilla.org/en/Drag_and_Drop the documentation says that ondragstart "is the HTML 5 spec name for the event and may be used in HTML or XUL handlers will work for both HTML and XUL."
The documentation says: "There are two ways that drag and drop events can be handled. This first involves using the drag and drop XPCOM interfaces directly. The second is to use a JavaScript wrapper object that handles some of this for you."
I am very confused with this. Can someone please tell me how to do drag and drop using these event handlers?
Any pointers/examples will help.
Thanks
Asty
Let's think over it!
|
|
|
|
|
The code snippet above is:
<code>
<div id="Top" ondragstart="alert('Drag Started');">
<img src="images/small_0.jpg"/>
</div></code>
I don't know why it was parsed despite closing it in code block!
Thanks.
Let's think over it!
|
|
|
|
|
Hi
I am not sure of the right terminology but here goes. (I am fairly new to this any help will be appreciated)
I am trying to take data and assign it a new string name each time a new row has been through the loop. This is in asp classic.
rs1.Open "Select * from email where deleted = 0;", connStr1, 3 , 4
startbody = rs1("body")
rs1.MoveNext
rs1.Close
Set rs1 = Nothing
for each record that comes out I need a new sting name
example
startbody1 = rs1("body") (first record returned)
startbody2 = rs1("body") (second record returned) etc.
Also rs1("body") is a large amount of html text.
|
|
|
|
|
Hello-
I think this is pretty basic but I am not a coder and am using just the VS interface.
I have data displayed in a gridview and would like to have an expand/collapse button. It is not a parent/child nested table design. Rather, I would like the default (collapsed) view to be 5 rows - when you hit expand I'd like to be able to see ALL rows.
I'm thinking maybe this is possible with a command button, setting the "onclick" parameters someway...but cant figure it out.
Any advice would be greatly appreciated!
Thanks
|
|
|
|
|
HI..Buddies.
I am developing a website and want to put email functionality in one of the webforms.
Can u send me the code and few settings in "Web.config" file.
Thanks.
Hemant Thaker
By:
Hemant Thaker
|
|
|
|
|
|
u must import System.Web.Mail name space and use the MailMessage class to send email from a webform.
|
|
|
|
|
hi
i have a dive in my page it must beh 100% height
it works correctly
but it brokes when i put my form tag on my page
when i look i found out that my form changes to a div and it comes on top and all my div and etc seems in bottom
how can i fix it?
Nika Asgari
|
|
|
|
|
Can you post some of your code?
Regards,
--Perspx
Don't trust a computer you can't throw out a window
-- Steve Wozniak
|
|
|
|
|
tnx for your reply and ur kindness
this is my entirecode
<%@ Page EnableEventValidation="false" Language="VB" AutoEventWireup="false" CodeFile="test2.aspx.vb" Inherits="test2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<title>Untitled Page</title>
<style type="text/css">
* {border: 0; padding: 0; margin: 0;}/* Set everything to "zero" */
html, body {min-height:100%; height:101%;
font:x-small Arial, Verdana, sans-serif;
voice-family: "\"}\"";voice-family:inherit;
font-size:small;/*for IE 5.5 */
} html>body {font-size:small; height:auto;}/* Assist IE6 & <, 100% height */
font-size: small; voice-family: "\"}\"";
voice-family: inherit; font-size: medium;} /* Assist IE rendering height, keyword-font sizes, etc. */
p {font-size: 90%; line-height:1.3em; margin:12px 0 2px 0;}
h1, h2, h3, h4, h5, h6 {font-family: 'times new roman', arial, verdana, serif; background-color:none;
font-style:normal; font-variant:normal; font-weight:normal; margin:14px 0 4px 10px;}
h1{font-size: 1.93em;}
h2{font-size: 1.72em;}
h3{font-size: 1.52em;}
h4{font-size: 1.42em;}
h5{font-size: 1.32em;}
h6{font-size: 1.21em;}
</style>
</head>
<body>
<form id="form1" runat="server">
<div style="height:auto; padding:25px 20px 25px 20px; width:100%; border:2px solid gray;">
<p>Will expand...</p>
<p>Will expand with more...</p>
<p>Will expand with more content...</p>
</div>
<div style="height:100%; width:100%; background-color:yellow;">
Goes to bottom of page...
<div>
</form>
</body>
</html>
Nika Asgari
|
|
|
|
|
Please edit your code with Pre tags /
code block
♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫
|
|
|
|
|
Hi, I'm trying to truncate and add ellipsis to text that's too long to fit in a specific width (in pixels), actually I'm already done with this part but the question is, are you aware of any differences in the way web browsers render text? Are there differences when rendering text in browsers on different platforms, e.g. Windows, Mac, Linux .. etc? I made some tests using IE6 and FF2 running on Windows XP and there was no difference at all, the text width was exactly the same in both browsers (using Verdana 12px).
I know about the CSS solution but I'm not willing to use it as it only works with IE, I also came across a javascript solution but I don't want to use it too (it makes some sense to save some bandwidth, why send something to the user that won't be displayed? this applies to the CSS solution too). Also, I'm not worried about users resizing the text, I'm only interested in getting this working with the *initial* font size.
I'm not completely sure but I don't think there are differences between browsers working on Windows, so I'm a little worried about the other platforms more esp. Mac, if you're using Mac then I would really appreciate if you measure this text for me (in Verdana 12px):
"this text is only meant for testing text rendering in different browsers" (without the quotes)
Thanks for your help ...
|
|
|
|
|
There's no guarantee that a given browser will render text to a specific pixel width. If i load up your site on my phone, or using a text-only browser, or with CSS turned off, or on a system without the font you specified... then things will look different to some extent. YMMV - add all the fluff you want, but make sure there's a fallback for critical information.
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|