![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Hi Erel - Happy Xmas or whatever! I get a 401 exception thrown. No, I'm not using New3 - the Help only shows a New1 and a New2. I had assumed that I would need access to the Request headers to insert an Authorization line but they are read-only!
I have now tried New3 and get "Response.Value = Request.GetResponse" Error description: "The server committed a protocol violation. Section=ResponseHeader. Detail=CR must be followed by LF. Continue?" The server in this case is the internal side of my router - I am practicing for a remote house monitoring system for a friend of mine. Looks like it won't work with the router - I shall have to wait for him to come up with the real server which will also have this sort of authentication. |
|
||||
|
Quote:
Code:
<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing="true" />
</settings>
</system.net
|
|
||||
|
Erel - idiot level questions I'm afraid!
I presume I need to "New3" the WebRequest object on every call to an authenticated server rather then "New1"s after the first. Does "KeepAlive" have any significance here? I presume I also need to perform a "New1" and "Close" pair on the WebResponse for every call as well. Thanks for the help so far. |
|
||||
|
Very interesting. Solves a few mysteries.
Quote from MSDN: Quote:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTTP library v1.4 | Erel | Official Updates | 2 | 10-29-2008 10:11 PM |
| HTTP Bug NEW3 | dibesw | Italian Forum | 5 | 08-02-2008 01:21 PM |
| http get JPG to Image | mamuen | Questions & Help Needed | 2 | 03-26-2008 09:42 PM |
| HTTP Post | nsidney | Questions & Help Needed | 4 | 01-30-2008 10:52 AM |
| HTTP Lib problem | Lasse | Questions & Help Needed | 5 | 06-04-2007 04:49 PM |