Thursday 15 September 2011

c# - HTTP POST in .NET doesn't work -


I have a problem creating a HTTP post request in .NET. When I request that it works in Ruby.

When I request a request in .NET, I get the following error:

  & lt; H1 & gt; Foxis API Call Failed & lt; / H1> & Lt; P & gt; & Lt; B & gt; Progressed: & lt; / B & gt; Carejobs.carejobs & lt; P & gt; & Lt; B & gt; The method is: & lt; / B & gt; Importvacature / & lt; P & gt; & Lt; B & gt; The parameters are: & lt; / B & gt; & Lt; P & gt; & Lt; P & gt; The criteria are: & lt; / B & gt; Vacax.deelnemernr = 478 & lt; / B & gt; & Lt; P & gt; & Lt; B & gt; GetIDsOfNames failed with error code 80020006: unknown name. & Lt; / P & gt; 

// www Carejobs.be/scripts/foxisapi.dll/carejobs.carejobs.importvacature ') post_args = {' vaccture.deelnemernr '=>' 478 ', resp, data = net :: HTTP.post_form (url, post_args) Print Print Print Data

C #:

Do not you need it? After the url to post a post with parameters? I think Ruby has hidden behind this scene.


No comments:

Post a Comment