Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Sep 23, 2016 @ 11:25
    Alex Skrypnyk
    0

    Send to URL as GET

    Hi,

    We tried to make Umbraco Form which will send data to URL via GET. But it crashes in the Umbraco code.

    There was a problem sending the Record with unique id '356ea14a-7917-4c2a-8f2b-559ba326ab1d' from the Form 'Submit to RequestBin' with id '760b27d5-85bf-4c7d-9add-fd61f4ea2e46' to the URL Endpoint 'http://requestb.in/19yzwf31' with the method 'GET'
    System.Net.WebException: An exception occurred during a WebClient request. ---> System.Net.ProtocolViolationException: Cannot send a content-body with this verb-type.
       at System.Net.HttpWebRequest.CheckProtocol(Boolean onRequestStream)
       at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
       at System.Net.HttpWebRequest.GetRequestStream()
       at System.Net.WebClient.UploadBits(WebRequest request, Stream readStream, Byte[] buffer, Int32 chunkSize, Byte[] header, Byte[] footer, CompletionDelegate uploadCompletionDelegate, CompletionDelegate downloadCompletionDelegate, AsyncOperation asyncOp)
       at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)
       --- End of inner exception stack trace ---
       at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)
       at System.Net.WebClient.UploadValues(String address, String method, NameValueCollection data)
       at Umbraco.Forms.Core.Providers.WorkflowTypes.PostToUrl.Execute(Record record, RecordEventArgs e)
    

    Everything works fine if we post data via POST.

    Is it issue for http://issues.umbraco.org?

    Thanks,

    Alex

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Oct 03, 2016 @ 09:16
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies