Click here to Skip to main content
15,895,557 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Display one value in combobox, but use another. Pin
Nielvh7-Sep-09 23:21
Nielvh7-Sep-09 23:21 
GeneralRe: Display one value in combobox, but use another. Pin
Johan Hakkesteegt7-Sep-09 23:40
Johan Hakkesteegt7-Sep-09 23:40 
GeneralRe: Display one value in combobox, but use another. Pin
Nielvh8-Sep-09 0:01
Nielvh8-Sep-09 0:01 
GeneralRe: Display one value in combobox, but use another. Pin
Johan Hakkesteegt8-Sep-09 0:11
Johan Hakkesteegt8-Sep-09 0:11 
GeneralRe: Display one value in combobox, but use another. Pin
Nielvh8-Sep-09 0:21
Nielvh8-Sep-09 0:21 
GeneralRe: Display one value in combobox, but use another. Pin
Johan Hakkesteegt8-Sep-09 0:26
Johan Hakkesteegt8-Sep-09 0:26 
GeneralRe: Display one value in combobox, but use another. Pin
Nielvh8-Sep-09 0:37
Nielvh8-Sep-09 0:37 
QuestionThe Remote Server Returned an error :(411) Length Required Pin
dcdhingra6-Sep-09 20:49
dcdhingra6-Sep-09 20:49 
Hello Every body,

I am trying to send data to server using post method. but this is showing "The Remote Server Returned an error :(411) Length Required". When i used get method to send data, then it is just send only 255 character.
i read that, using post method you can send unlimited data.

my data may be 255 character and i am sending data as a parameter like below.


Try
myUri = New Uri("https://www.mywebsite.com/apis/ConfirmContactUpdated.cfm?APIServiceTag=" & APIServiceTag.Trim & "&APISessionTag=" & AutheniticateSession & "&APIContactTag=" & myds.Tables(0).Rows(i)("tbl_All_Contact_List.ServiceTag").ToString.Trim & "&APIContactUpdatedBoolean=False" & "&APIContactUpdatedDateTime=" & myds.Tables(0).Rows(i)("tbl_All_Contact_List.LastUpdate").ToString.Trim & "&APIUpdateNotesBoolean=True&APINotesLastChangedDateTime=" & myds.Tables(0).Rows(i)("tbl_All_Contact_List.NotesLastUpdate").ToString.Trim & "&APINotesText=" & myds.Tables(0).Rows(i)("Updated_Note").ToString.Trim)

Dim reader As StreamReader

request = DirectCast(Net.WebRequest.Create(myUri), HttpWebRequest)
request.Method = "POST" '"GET"
request.ContentLength = myds.Tables(0).Rows(i)("Updated_Note").ToString.Trim.Length + 100


Try
response = DirectCast(request.GetResponse(), HttpWebResponse)

reader = New StreamReader(response.GetResponseStream())

Catch ex As System.Exception
MsgBox(ex.Message.ToString)
End Try

Can anybody send me example with source code so that i can check where i m wrong. Or plese review this code.

I am using vb.net 2005.

Thakns in advancd.

Regards

DC
AnswerRe: The Remote Server Returned an error :(411) Length Required Pin
Hurricane30007-Sep-09 11:07
Hurricane30007-Sep-09 11:07 
GeneralRe: The Remote Server Returned an error :(411) Length Required Pin
dcdhingra8-Sep-09 4:17
dcdhingra8-Sep-09 4:17 
QuestionMore efficient way to program row visibility in VB Pin
Cardary6-Sep-09 20:35
Cardary6-Sep-09 20:35 
AnswerRe: More efficient way to program row visibility in VB Pin
Christian Graus6-Sep-09 21:35
protectorChristian Graus6-Sep-09 21:35 
AnswerRe: More efficient way to program row visibility in VB Pin
εїзεїзεїз6-Sep-09 22:00
εїзεїзεїз6-Sep-09 22:00 
AnswerRe: More efficient way to program row visibility in VB Pin
N a v a n e e t h6-Sep-09 22:33
N a v a n e e t h6-Sep-09 22:33 
Questiontelephone number word generator Pin
rbjanaki6-Sep-09 11:12
rbjanaki6-Sep-09 11:12 
AnswerRe: telephone number word generator Pin
Henry Minute6-Sep-09 11:39
Henry Minute6-Sep-09 11:39 
GeneralRe: telephone number word generator Pin
rbjanaki6-Sep-09 11:46
rbjanaki6-Sep-09 11:46 
GeneralRe: telephone number word generator Pin
Henry Minute6-Sep-09 12:17
Henry Minute6-Sep-09 12:17 
GeneralRe: telephone number word generator Pin
rbjanaki6-Sep-09 12:24
rbjanaki6-Sep-09 12:24 
GeneralRe: telephone number word generator Pin
Hurricane30006-Sep-09 12:31
Hurricane30006-Sep-09 12:31 
GeneralRe: telephone number word generator Pin
rbjanaki6-Sep-09 12:42
rbjanaki6-Sep-09 12:42 
GeneralRe: telephone number word generator Pin
Henry Minute6-Sep-09 13:36
Henry Minute6-Sep-09 13:36 
GeneralRe: telephone number word generator Pin
rbjanaki6-Sep-09 14:16
rbjanaki6-Sep-09 14:16 
GeneralRe: telephone number word generator Pin
Henry Minute6-Sep-09 14:36
Henry Minute6-Sep-09 14:36 
GeneralRe: telephone number word generator Pin
Luc Pattyn6-Sep-09 12:39
sitebuilderLuc Pattyn6-Sep-09 12:39 

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.