Click here to Skip to main content
15,895,370 members
Home / Discussions / C#
   

C#

 
GeneralRe: Calling an exported Function - Issue with different calling convention in C# Pin
Vini Deep29-Apr-04 2:23
Vini Deep29-Apr-04 2:23 
Generalexception in system.drawing.dll Pin
Member 69108927-Apr-04 0:14
Member 69108927-Apr-04 0:14 
GeneralRe: exception in system.drawing.dll Pin
Heath Stewart27-Apr-04 4:06
protectorHeath Stewart27-Apr-04 4:06 
QuestionHow to lunch htm through C# code Pin
Alex Getman26-Apr-04 21:40
Alex Getman26-Apr-04 21:40 
AnswerRe: How to lunch htm through C# code Pin
Kannan Kalyanaraman26-Apr-04 22:50
Kannan Kalyanaraman26-Apr-04 22:50 
AnswerRe: How to lunch htm through C# code Pin
Mike Dimmick26-Apr-04 23:34
Mike Dimmick26-Apr-04 23:34 
GeneralRe: How to lunch htm through C# code Pin
Alex Getman27-Apr-04 0:47
Alex Getman27-Apr-04 0:47 
GeneralRe: How to lunch htm through C# code Pin
Heath Stewart27-Apr-04 4:11
protectorHeath Stewart27-Apr-04 4:11 
Why are you adding headers? I take it that's what you want to post to the PHP CGI? See the HttpWebRequest.GetRequestStream[^] method documentation in the .NET Framework SDK for an example.

Basically, you get the request stream before you get the HTTP response and write your &-delimited parameters and values (delimited by =) to the response stream using an Encoding that matches up with the HttpWebRequest.ContentType (application/x-www-form-urlencoded uses ASCII encoding, so use Encoding.ASCII or ASCIIEncoding (the same thing, just different ways of getting an instance of it). After you're finished, you flush and close the request stream and then get your response. The link above has a more detailed example.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: How to lunch htm through C# code Pin
Alex Getman27-Apr-04 4:23
Alex Getman27-Apr-04 4:23 
GeneralRe: How to lunch htm through C# code Pin
Heath Stewart27-Apr-04 5:30
protectorHeath Stewart27-Apr-04 5:30 
GeneralRe: How to lunch htm through C# code Pin
Alex Getman27-Apr-04 6:25
Alex Getman27-Apr-04 6:25 
GeneralRe: How to lunch htm through C# code Pin
Alex Getman27-Apr-04 6:38
Alex Getman27-Apr-04 6:38 
GeneralRe: Formula Pin
Jeff Varszegi26-Apr-04 19:43
professionalJeff Varszegi26-Apr-04 19:43 
GeneralRe: Formula Pin
DucLinh26-Apr-04 20:59
DucLinh26-Apr-04 20:59 
GeneralRe: Formula Pin
Jeff Varszegi27-Apr-04 3:09
professionalJeff Varszegi27-Apr-04 3:09 
GeneralRe: Formula Pin
Mazdak26-Apr-04 21:12
Mazdak26-Apr-04 21:12 
GeneralRe: Formula Pin
leppie27-Apr-04 7:05
leppie27-Apr-04 7:05 
GeneralParsing a string object Pin
Tony D. Abel26-Apr-04 17:55
Tony D. Abel26-Apr-04 17:55 
GeneralRe: Parsing a string object Pin
Jeff Varszegi26-Apr-04 18:05
professionalJeff Varszegi26-Apr-04 18:05 
GeneralRe: Parsing a string object Pin
Tony D. Abel27-Apr-04 7:02
Tony D. Abel27-Apr-04 7:02 
GeneralFormula Pin
DucLinh26-Apr-04 15:56
DucLinh26-Apr-04 15:56 
Generalcreating an array of existing WinForm controls Pin
Roman Nurik26-Apr-04 13:48
Roman Nurik26-Apr-04 13:48 
GeneralRe: creating an array of existing WinForm controls Pin
Roman Nurik26-Apr-04 13:51
Roman Nurik26-Apr-04 13:51 
GeneralRe: creating an array of existing WinForm controls Pin
Mike Dimmick26-Apr-04 23:43
Mike Dimmick26-Apr-04 23:43 
GeneralRe: creating an array of existing WinForm controls Pin
Mike Ellison26-Apr-04 17:03
Mike Ellison26-Apr-04 17:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.